From 0db8a0389ae2b951b1c8337bb481f45bcc79cd1c Mon Sep 17 00:00:00 2001 From: Tyler Mercier Date: Tue, 23 Jul 2013 12:01:00 -0600 Subject: add dotenv to prod. update config files --- config/unicorn.rb | 2 +- config/unicorn_init.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/unicorn.rb b/config/unicorn.rb index b3e6286..b1eebeb 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -23,7 +23,7 @@ worker_processes 4 # Help ensure your application will always spawn in the symlinked # "current" directory that Capistrano sets up. -working_directory "/home/demo/apps/parley" # available in 0.94.0+ +working_directory "/home/demo/apps/parley/current" # available in 0.94.0+ # listen on both a Unix domain socket and a TCP port, # we use a shorter backlog for quicker failover when busy diff --git a/config/unicorn_init.sh b/config/unicorn_init.sh index 9fb610b..09ad58e 100644 --- a/config/unicorn_init.sh +++ b/config/unicorn_init.sh @@ -13,9 +13,9 @@ set -e # Feel free to change any of the following variables for your app: TIMEOUT=${TIMEOUT-60} APP_ROOT=/home/demo/apps/parley/current -PID=$APP_ROOT/tmp/pids/unicorn.pid -CMD="bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production" -AS_USER=username +PID=/home/demo/apps/parley/current/tmp/pids/unicorn.pid +CMD="cd /home/demo/apps/parley/current; bundle exec unicorn -E production -D -c config/unicorn.rb" +AS_USER=demo set -u OLD_PIN="$PID.oldbin" -- cgit v1.2.3