also perform app bootup when npm run command is specified

This commit is contained in:
Sameer Naik
2017-01-16 12:27:25 +05:30
parent 4e9d776f44
commit cba8d84a6f

View File

@@ -81,7 +81,7 @@ log () {
echo -e "\033[0;33m$(date "+%H:%M:%S")\033[0;37m ==> $1."
}
if [ "$1" == npm -a "$2" == "start" ]; then
if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
if database_tier_exists; then
wait_for_db
fi