problem: installed nginx + passenger on local computer, can't connect rails project nginx. here's did:
i've installed nginx + passenger using brew, instructed here: https://www.phusionpassenger.com/library/install/nginx/install/oss/osx/
i edited config file (under /usr/local/etc/nginx/nginx.conf) following:
http { passenger_root /usr/local/opt/passenger/libexec/lib/phusion_passenger/locations.ini; passenger_ruby /usr/bin/ruby; ... server { listen 3000; server_name localhost; rails_env development; root /absolute/path/to/rails/project/public passenger_enabled on; } location / { root html; index index.html index.htm; } ... }
then start nginx typing "nginx" in terminal
now when go localhost:3000, default "welcome nginx!" page. expect see home root page.
questions
- doing wrong? aka, why rails project not showing?
- recommendations troubleshooting?
note
- localhost:3000 works if i'm run "rails server" (webrick)
- running rails 3.2.19, ruby 2.1.4, nginx 1.8, phusion passenger 5.0.18.
thank you.
this nginx issue. recommend use passenger standalone don't have deal nginx. it's easier. run 'passenger start' in application directory.
Comments
Post a Comment