2021-11-09 00:55:57 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-11-09 20:52:42 +00:00
|
|
|
if [ "$COMMAND" == "deploy" ]; then
|
2021-11-09 00:55:57 +00:00
|
|
|
npm run buildProd
|
|
|
|
npm install -g firebase-tools
|
|
|
|
firebase login --no-localhost
|
|
|
|
firebase deploy
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2021-11-08 22:53:39 +00:00
|
|
|
echo "Installing packages"
|
|
|
|
npm install
|
|
|
|
echo "Running application"
|
|
|
|
npm start
|