Created
May 16, 2020 03:56
-
-
Save RafaelFigueiredo/73b9f99b4304b41543470107a7a529bc to your computer and use it in GitHub Desktop.
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
# Start a nodejs application in development or production | |
# depending on enviroment variable | |
if [ $NODE_ENV = "production" ] | |
then | |
echo "starting in production mode" | |
npm start | |
else | |
echo "starting in development mode" | |
npm run dev | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment