summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTyler Mercier <tylermercier@gmail.com>2013-07-23 12:01:00 -0600
committerTyler Mercier <tylermercier@gmail.com>2013-07-23 12:01:00 -0600
commit0db8a0389ae2b951b1c8337bb481f45bcc79cd1c (patch)
tree936af9014827022fe38970a5cddeb015193f4492 /config
parent238e261a7014ce72f33d36c061837456bb23cb4c (diff)
add dotenv to prod. update config files
Diffstat (limited to 'config')
-rw-r--r--config/unicorn.rb2
-rw-r--r--config/unicorn_init.sh6
2 files changed, 4 insertions, 4 deletions
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"