Swap Puma out in favour of Falcon#1083
Conversation
|
Hey @ioquatix, when you have a moment I'd really appreciate some guidance with running HTTPS locally via our We have a Bridgetown::Server.new({
Host: bt_options.bind,
Port: port,
config: rack_config_file
}).tap do |server|
if server.serveable?
# ...
server.start(after_stop_callback)
else
say "Unable to find a Rack server."
end
endIs there a way to setup SSL here in a generic way that wouldn't break if the user was using another server like Puma, or is it too much of a hassle best left as is? Thanks :D |
|
After some further research, I don't think SSL via the Perhaps there's another approach to explore, I'll have a think. |
|
Rackup needs an overhaul. Other than that, the best advice is just to use Regarding SSL, falcon has great support for it, using the I wish there was a better answer. |
|
Thanks so much @ioquatix ... thought that might be the case :). |
b7b35bb to
12c13f1
Compare
|
I think saying we now offer "beta" status for folks to try out Falcon is a good idea, but I'm very hesitant to change any behavior for existing & new sites which are using Puma. I'm wondering how we could modify this PR so essentially nothing has changed in the context of using Puma, but still also support the Falcon use case. |
Nothing will change for existing sites. Unless you explicitly add Falcon to your Since we removed our hard dependency on Puma last year, this was actually a pretty straightforward change. All new sites will be created with Nothing changes for existing sites unless you manually switch over to Falcon. |
An initial stab at swapping Puma out for Falcon.
At first look, everything seems to be working. We removed all hard dependencies on Puma last year so we might be mostly good to go here. @jaredcwhite @fpsvogel could you please give it a try on some of your websites and see how you get on? Make the following changes to your
Gemfile:Then run
bundleand you should be able to start your server withbin/bt start.Further steps / unknowns
puma.rbforfalcon.rb(if needed).Resolves #4567
Notes
We can't with
Rackup. In a subsequent PR, I'll investigate a way to invoke the web server directly in thestartcommand alongside the Bridgetown build. This will benefit Puma users as well becausebundle exec pumaoffers more flexibility than Rackup.