Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created November 12, 2010 07:48
Show Gist options
  • Save lajunta/673850 to your computer and use it in GitHub Desktop.
Save lajunta/673850 to your computer and use it in GitHub Desktop.
start and stop unicorn
#!/bin/sh
PATH=/var/lib/gems/1.9.1/bin:/usr/local/mongodb/bin:/usr/bin
cd /usr/local/railsites/zcms
unicorn_rails -p 80 -E production -D
exit 0
#stop
#!/bin/bash
pkill unicorn_rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment