Search code examples
ruby-on-railssslherokumongoid3

Cant run rails app locally after adding SSL for production


I have recently added SSL for an Heroku hosted web app but now I cant run the app locally, the browser just spins forever and then in the terminal I get this error -

$ rails s
=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-07-22 11:46:26] INFO  WEBrick 1.3.1
[2013-07-22 11:46:26] INFO  ruby 1.9.3 (2013-02-22) [x86_64-darwin12.4.0]
[2013-07-22 11:46:26] INFO  WEBrick::HTTPServer#start: pid=34732 port=3000
[2013-07-22 11:51:07] ERROR bad Request-Line `:\x00\x00\x00'.

I don't nessessarily need SSL for development so don't need to add the thin gem or nugenix but how can I get it to run locally again?


Solution

  • Ryan Bates had a nice little episode on the topic of adding SSL which addresses the development environment. The configuration involves pow and nginx. I will be soon trying it out for myself but not this week.