Skip to content

Instantly share code, notes, and snippets.

View reinskywalker's full-sized avatar

Andre Reynaldi Lusikooy reinskywalker

View GitHub Profile
@reinskywalker
reinskywalker / unicorn
Created September 22, 2020 08:53 — forked from shapeshed/unicorn
Unicorn / Monit setup
#!/bin/sh
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:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/path/to/your/app/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENVIRONMENT=production