Point Nginx to one page of my rails app -


i have domain on namecheap , created subdomain staging env, nevertheless point of me doing because want have domain point 1 page in rails app i'm not sure how that. went staging , nano file in sites-enabled directive , added block:

server {   listen                8880;   server_name           staging.my_domain_name.com;   access_log        /var/www/my_app_name/current/log/access.log;   error_log         /var/www/my_app_name/current/log/error.log;   root              /var/www/my_app_name/current/public/;    passenger_ruby /home/deploy/.rbenv/versions/2.1.0/bin/ruby;    passenger_enabled           on;   rails_env                   staging;   rails_spawn_method          smart-lv2;   passenger_min_instances     1;    # maintenance    error_page 404 /404.html;   error_page 403 /404.html;    location = /404.html {     internal;   } } 

so root tried change path view path

/var/www/my_app_name/current/app/views/pages/page_name.html.erb; 

i tried add link i'm not sure how , i'm still new in devops

i tried how make nginx point 1 page in rails app

note: listens 8880 because have varnish server listen port 80

any highly appreciated. thanks.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -