Skip to content

Instantly share code, notes, and snippets.

@treeder
Created March 21, 2012 16:20
Show Gist options
  • Select an option

  • Save treeder/2149209 to your computer and use it in GitHub Desktop.

Select an option

Save treeder/2149209 to your computer and use it in GitHub Desktop.
Upstart script for Thin
description "thin"
version "1.0"
author "Travis Reeder"
env LANG=en_US.UTF-8
env APP_HOME=/home/ubuntu/myapp
respawn
start on runlevel [23]
script
cd $APP_HOME
sudo thin start -e production -p 80 > $APP_HOME/log/thin.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment