mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-11-06 18:58:01 +00:00
add start script
This commit is contained in:
1 parent
f38803d60d
commit
1d7072aee0
11 files changed
+26
-59
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user