add start script

This commit is contained in:
Jurgis Sakalauskas committed 2023-10-30 09:10:53 +02:00
1 parent f38803d60d
commit 1d7072aee0
11 files changed
+26 -59

No files matched your search

+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