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.
Cant run rails app locally after adding SSL for production
-
03-06-2022 - |
Question
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
OTHER TIPS
Problem solved! By adding pow as the server I can run the app normally :)
To add POW to your app run this command curl get.pow.cx | sh
and then cd ~/.pow
followed by ln -s /path/to/myapp
.
POW is well documented on the website http://pow.cx/ and as mentioned by another user Ryan Bates has a great video on SSL which explains how to add POW to your app -http://railscasts.com/episodes/357-adding-ssl
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow