Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Switch from swaddle to foreman in payday.sh; #468
Browse files Browse the repository at this point in the history
This was the big one. The others in the Makefile (though cf. #426)
should be easy.
  • Loading branch information
chadwhitacre committed Jan 31, 2013
1 parent 66e7ae1 commit 9e0fc3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions payday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,19 @@ else
fi

if [ $1 ]; then
require foreman
confirm "$RUN payday #$1?"
if [ $? -eq 0 ]; then
if [ "$2" == "" ]; then
start
env/bin/swaddle local.env ./env/bin/payday >> $LOG 2>&1
foreman run -e local.env ./env/bin/payday >> $LOG 2>&1
else
if [ "$2" == "for_real_please" ]; then
confirm "$RUN payday #$1 FOR REAL?!?!?!??!?!?"
if [ $? -eq 0 ]; then
start
heroku config | ./env/bin/swaddle - ./env/bin/payday \
>> $LOG 2>&1
heroku config -s | foreman run -e /dev/stdin \
./env/bin/payday >> $LOG 2>&1
fi
else
echo "Your second arg was $2. Wazzat mean?"
Expand Down

0 comments on commit 9e0fc3b

Please sign in to comment.