kemal icon indicating copy to clipboard operation
kemal copied to clipboard

multiple kemals

Open kostya opened this issue 7 years ago • 1 comments

would be nice if there was a way to run multiple kemals on different ports:

like this:

class App1 < Kemal
  get "/bla" do
     ...
  end
end

class App2 < Kemal
  get "/" do
     ...
  end
end

spawn { App1.run("127.0.0.1", 3000) }
spawn { App2.run("127.0.0.1", 3001) }

sleep

kostya avatar Mar 29 '18 02:03 kostya

See, this is an ongoing effort at https://github.com/kemalcr/kemal/pull/378

sdogruyol avatar Mar 29 '18 13:03 sdogruyol