You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
848 B

npm install;
cat >.env <<EOF
POSTGRES_HOST=$POSTGRES_HOST
POSTGRES_PORT=$POSTGRES_PORT
POSTGRES_USER=$POSTGRES_USER
POSTGRES_PASSWORD=$POSTGRES_PASSWORD
POSTGRES_DB=$POSTGRES_DB
2 years ago
MAIL_USER=$MAIL_USER
MAIL_PASSWORD=$MAIL_PASSWORD
HOST=$HOST
FRONT_PORT=$FRONT_PORT
BACK_PORT=$BACK_PORT
HASH_SALT=$HASH_SALT
JWT_SECRET=$JWT_SECRET
JWT_EXPIRATION_TIME=$JWT_EXPIRATION_TIME
FT_OAUTH_CLIENT_ID=$FT_OAUTH_CLIENT_ID
FT_OAUTH_CLIENT_SECRET=$FT_OAUTH_CLIENT_SECRET
FT_OAUTH_CALLBACK_URL=$FT_OAUTH_CALLBACK_URL
EOF
if [[ $NODE_ENV == "production" ]]; then
npm run build && npm run start:prod;
elif [[ $NODE_ENV == "debug" ]]; then
npm run start:debug;
elif [[ $NODE_ENV == "check" ]]; then
npm run format && npm run lint; echo "=== FINISH ===";
elif [[ $NODE_ENV == "development" ]]; then
npm run dev;
else echo "NODE_ENV value isn't known.";
fi;