Deploying rails app on phusion passenger + Nginx
Posted
by
user1028432
on Stack Overflow
See other posts from Stack Overflow
or by user1028432
Published on 2013-10-23T21:51:51Z
Indexed on
2013/10/23
21:53 UTC
Read the original article
Hit count: 209
I installed passenger + nginx:
gem install passenger , passenger-install-nginx-module
, and making init script nginx conf(/opt/nginx/conf/nginx.conf):
worker_processes 1;
events {
worker_connections 1024;
}
http {
passenger_root /home/rusik/.rvm/gems/ruby-2.0.0-p247@work/gems/passenger-4.0.21;
passenger_ruby /home/rusik/.rvm/wrappers/ruby-2.0.0-p247@work/ruby;
include mime.types;
default_type application/octet-stream;
sendfile on;
rails_env development;
server {
listen 80;
server_name www.myapp.com;
charset utf-8;
root /home/rusik/www/testapp/public;
passenger_enabled on;
}
}
restarting nginx , and page www.myapp.com doesn't load , what can be a problem?(changeing rails_env i tried , rails s i running)
I am trying a lot of time to make it works , but can't , i am also tryed install through apt repositiry, but the problem is the same , the page doesn't loaded!
© Stack Overflow or respective owner