Skip to content

Instantly share code, notes, and snippets.

@noppolp
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save noppolp/a707cd7bd8192ec64bc1 to your computer and use it in GitHub Desktop.

Select an option

Save noppolp/a707cd7bd8192ec64bc1 to your computer and use it in GitHub Desktop.
Config environment for rails server
############################################
# Environment
############################################
# production
#
# $ sudo nano /etc/environment
# --------------------------------------------------
# export RAILS_ENV=production
# export RACK_ENV=production
# --------------------------------------------------
# PATH="/home/deployer/.rbenv/shims:/home/deployer/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# --------------------------------------------------
#
# $ sudo nano /etc/nginx/sites-available/default
# --------------------------------------------------
# rails_env production;
# --------------------------------------------------
#
# $ /etc/init.d/nginx restart
# --------------------------------------------------
# sudo sh -c 'nano /var/log/nginx/error.log'
############################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment