Skip to content

Instantly share code, notes, and snippets.

@kalupa
Created October 26, 2011 14:07
Show Gist options
  • Save kalupa/1316468 to your computer and use it in GitHub Desktop.
Save kalupa/1316468 to your computer and use it in GitHub Desktop.
Restart nginx and passenger
function kicknginx () {
kill -HUP `cat /usr/local/var/run/nginx.pid`
touch ./tmp/restart.txt
}
@kalupa
Copy link
Author

kalupa commented Oct 26, 2011

will barf an error if you're not in a rails project with a tmp folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment