This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Setting the default app server file | |
APP_FILE="app3.js" | |
echo "TTNRT : about to forever start $APP_FILE" | |
# Getting arguments as array | |
ARGS=("$@") | |
if [ ${ARGS[0]} = "start" ]; then | |
echo "Staring: $APP_FILE" | |
echo `forever start -l forever.log -o out.log -e err.log ~/TTN-RT/"$APP_FILE"` | |
elif [ ${ARGS[0]} = "stop" ]; then | |
echo "Stopping: $APP_FILE" | |
echo `forever stop "$APP_FILE"` | |
else | |
echo 'Um, you didn\'t tell me what to do [start | stop]' | |
fi | |
echo 'FIN.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error