nginx - How to deploy rails 5 on digitalocean 16.04 one click app -


i make droplet on digital ocean , select rails 16.04 1 click app.

then done project changes after clone bundle install , database.yml changes , migrations , assets precompile. done fine

now don't know replace demo_name project name in nginx , puma settings , how restart puma also

please thanks

install passenger gem , add lines in nginx conf file:

server {     listen 80;     server_name 67.205.128.137;      # tell nginx , passenger app's 'public' directory     root /var/www/app_name/public;      # turn on passenger     passenger_enabled on;     passenger_ruby /root/.rvm/gems/ruby-2.2.2/wrappers/ruby; } 

restart nginx command:

sudo /etc/init.d/nginx restart 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -