templating api
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$RUN_SCHEDULER" = "true" ]; then
|
||||
echo "Running scheduler"
|
||||
if [ "$NODE_ENV" = "production" ]; then
|
||||
node ./dist/scheduler.js
|
||||
else
|
||||
npm run start:scheduler
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$NODE_ENV" = "production" ]; then
|
||||
node ./dist/initializers/index.js
|
||||
node ./dist/server.js
|
||||
else
|
||||
npm run initializers
|
||||
npm run start
|
||||
fi
|
||||
Reference in New Issue
Block a user