Skip to content

Instantly share code, notes, and snippets.

@bitemyapp
Created October 29, 2013 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitemyapp/7223050 to your computer and use it in GitHub Desktop.
Save bitemyapp/7223050 to your computer and use it in GitHub Desktop.
##### dev.env
export database_url="fake"
export rabbitmq_host="fakehost"
export fake_start_consumers="true"
export fake_start_web="true"
export push_schema="true"
export rabbitmq_fake_qname="fake"
##### upstart init
description "fake"
author "Chris Allen"
start on runlevel [345]
setuid fake
script
. /mnt/ebs/srv/fake/env.sh
cd /mnt/ebs/srv/fake
chown -R fake.fake /mnt/ebs/srv/fake
set -x
java -jar /mnt/ebs/srv/fake/fake.jar >> /mnt/ebs/log/fake/fake.log 2>&1
emit fake_running
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment