Change the Start Script and Added NODE_ENV to the env vars also for the dockerized Version
This commit is contained in:
@@ -2,4 +2,3 @@ SHELL=/bin/bash
|
|||||||
MAILTO=""
|
MAILTO=""
|
||||||
0 8 * * * root . /etc/cron-env.sh && /opt/app/run-task.sh --today >> /proc/1/fd/1 2>&1
|
0 8 * * * root . /etc/cron-env.sh && /opt/app/run-task.sh --today >> /proc/1/fd/1 2>&1
|
||||||
*/15 * * * * root . /etc/cron-env.sh && /opt/app/run-task.sh >> /proc/1/fd/1 2>&1
|
*/15 * * * * root . /etc/cron-env.sh && /opt/app/run-task.sh >> /proc/1/fd/1 2>&1
|
||||||
* * * * * root echo "cron test ran at $(date)" >> /proc/1/fd/1 2>&1
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ chmod +x /etc/cron-env.sh
|
|||||||
# Write the Env Vars into a file for cron. happens during runtime of the container and not build.
|
# Write the Env Vars into a file for cron. happens during runtime of the container and not build.
|
||||||
# List your environment variables here
|
# List your environment variables here
|
||||||
env_vars=(
|
env_vars=(
|
||||||
|
NODE_ENV
|
||||||
TZ
|
TZ
|
||||||
DB_FILEPATH
|
DB_FILEPATH
|
||||||
DB_FILENAME
|
DB_FILENAME
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"typescript-eslint": "^8.46.2"
|
"typescript-eslint": "^8.46.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prod": "NODE_ENV=production bun run ./src/app.ts",
|
"start": "bun run ./src/app.ts",
|
||||||
"dev": "NODE_ENV=development bun ./src/app.ts",
|
"dev": "NODE_ENV=development bun ./src/app.ts",
|
||||||
"db:init": "bun run ./run/db_init.ts",
|
"db:init": "bun run ./run/db_init.ts",
|
||||||
"db:deleteall": "bun run ./run/db_event_deleteall.ts",
|
"db:deleteall": "bun run ./run/db_event_deleteall.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user