When running a Rails project locally that needs SSL support you might get the following type of error:
... Puma compiled without SSL support (RuntimeError)
Here's how to fix it:
If ruby -rpuma -e "puts Puma.ssl?"
returns false
then manually install Puma
(not from the bundler gem file):
gem install puma
Still doesn't work? Check if the Gemfile
has a specific puma version defined; you'll need to manually install that one:
gem install puma -v 5.6.4
ruby -rpuma -e "puts Puma.ssl?"
should now return true
, and running the Rails server should now work.