Created
September 10, 2012 22:06
-
-
Save FernandoEscher/3694322 to your computer and use it in GitHub Desktop.
Server configuration for Rails: Start the application
This file contains 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
# Create a symlink to the nginx bin file | |
sudo ln -s /opt/nginx/sbin/nginx /usr/local/sbin/ | |
# Change the PID location | |
sudo vim /opt/nginx/conf/nginx.conf | |
pic /var/run/nginx.pid | |
# Go to the init.d folder | |
cd /etc/init.d/ | |
# Download the script | |
sudo wget https://raw.github.com/gist/1161075/6c0727fa276e9795246686afea06a3717db58058/nginx | |
# Add service to start on boot | |
sudo update-rc.d nginx defaults | |
# Restart the server | |
sudo shutdown -r now | |
# Configure your capistrano receipe to deploy your application. | |
------ DONE! ------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment