add start script

This commit is contained in:
Jurgis Sakalauskas
2023-10-30 09:10:53 +02:00
parent f38803d60d
commit 1d7072aee0
11 changed files with 26 additions and 59 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
if [ "$NODE_ENV" == "production" ]; then
echo "Starting app in production mode"
echo "Running prebuild"
npm run prebuild
echo "Running build"
npm run build
echo "Starting app"
npm run start:prod
else
echo "Starting app in development mode"
npm run start:dev
fi