Browse files

nginx / mongrel: explicitly change dir to APP_DIR, for rbenv compatib…

…ility
  • Loading branch information...
1 parent fc2a566 commit 1bdf89e7f7d4ceab76434c84659d376a20d84ede @purcell committed Feb 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 mongrel-run
  2. +1 −1 thin-run
View
2 mongrel-run
@@ -8,4 +8,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec mongrel_rails start -e production -p $PORT -c $APP_DIR 2>&1
+cd $APP_DIR && exec mongrel_rails start -e production -p $PORT 2>&1
View
2 thin-run
@@ -8,4 +8,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec thin start -e production -p $PORT -c $APP_DIR 2>&1
+cd $APP_DIR && exec thin start -e production -p $PORT 2>&1

0 comments on commit 1bdf89e

Please sign in to comment.