Skip to content

Instantly share code, notes, and snippets.

@RafaelFigueiredo
Created May 16, 2020 03:56
Show Gist options
  • Save RafaelFigueiredo/73b9f99b4304b41543470107a7a529bc to your computer and use it in GitHub Desktop.
Save RafaelFigueiredo/73b9f99b4304b41543470107a7a529bc to your computer and use it in GitHub Desktop.
# 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