diff --git a/server b/server index 4d4194c..e423580 100755 --- a/server +++ b/server @@ -1,6 +1,5 @@ #! /bin/bash # This script should be used by the test suite, don't useit manually -# or you may end up with zombie processes lying around if [ -z "$FORGEHOOKPORT" ]; then [ -z "$1" ] && exit 1 @@ -8,6 +7,7 @@ if [ -z "$FORGEHOOKPORT" ]; then fi [ -z "$FORGEHOOK" ] && FORGEHOOK="forgehook" +cd "$(dirname "$0")" php -S localhost:$FORGEHOOKPORT if [[ $? != 0 ]]; then exit 2