18 lines
513 B
Bash
18 lines
513 B
Bash
# Start application
|
|
|
|
# By-pass starting the node.js if ENABLE_DUMMY_DAEMON=true
|
|
if [ ! "${ENABLE_DUMMY_DAEMON}" = "true" ]; then
|
|
|
|
# Change to APP Root Folder to run app
|
|
cd ${APP_ROOT}
|
|
|
|
# Start NodeJS App - 'start:prod'
|
|
# Note: Don't run 'start:dev' for development environment
|
|
# instead, set environment variable: APP_ENV=development
|
|
# Optionally, you can override the LOG_LEVEL as needed.
|
|
|
|
# TODO: Handle env properly
|
|
# dumb-init yarn start:prod
|
|
dumb-init yarn -s start:prod
|
|
fi
|