2017年3月16日 星期四

deploy rails passenger digitalocean error

I follow the step with the pages
https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/digital_ocean/nginx/oss/xenial/deploy_app.html

when all the work done, still can get start, you'll get this page.
 
 server {
    listen 80;
    server_name yourserver.com;

    # Tell Nginx and Passenger where your app's 'public' directory is
    root /var/www/myapp/code/public;

    # Turn on Passenger
    passenger_enabled on;
    passenger_ruby /path-to-ruby;  
 

 This line let me struggle 1 day 
take it away 
 }
 
 
 
 
 The Answer


http {

add this
    passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
    passenger_ruby /usr/local/rvm/gems/ruby-2.3.3/wrappers/ruby;


finish


沒有留言:

張貼留言