Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Unicornの起動スクリプトを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hico-horiuchi committed Mar 3, 2015
1 parent f90e948 commit eda5d2a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/unicorn.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ set -e
TIMEOUT=${TIMEOUT-60}
APP_ROOT={{ dest }}
PID=/tmp/unicorn.pid
RAILS_ENV=production
CMD="bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E $RAILS_ENV"
CMD="bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb"
action="$1"
set -u

old_pid="$PID.oldbin"
cd $APP_ROOT || exit 1

export SECRET_KEY_BASE={{ secret_key_base }}

sig () {
test -s "$PID" && kill -$1 `cat $PID`
}
Expand Down

0 comments on commit eda5d2a

Please sign in to comment.