Skip to content

Instantly share code, notes, and snippets.

@FernandoEscher
Created September 10, 2012 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FernandoEscher/3694322 to your computer and use it in GitHub Desktop.
Save FernandoEscher/3694322 to your computer and use it in GitHub Desktop.
Server configuration for Rails: Start the application
# 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