Last active
August 29, 2015 14:11
-
-
Save noppolp/a707cd7bd8192ec64bc1 to your computer and use it in GitHub Desktop.
Config environment for rails server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################ | |
| # 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