kemalcr / kemal

Fast, Effective, Simple Web Framework
https://kemalcr.com
MIT License
3.59k stars 187 forks source link

multiple kemals #441

Open kostya opened 6 years ago

kostya commented 6 years ago

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
sdogruyol commented 6 years ago

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