Skip to content

Instantly share code, notes, and snippets.

View raffone's full-sized avatar

Raffaele Rasini raffone

View GitHub Profile
@raffone
raffone / unicorn
Last active December 21, 2015 01:39 — forked from mguterl/gist:308216
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
RUBY=ruby-1.9.3-p448
APP_ROOT=/var/www/public
PID=$APP_ROOT/tmp/pids/unicorn.pid