changed start script to add env prod and dev
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
"typescript-eslint": "^8.46.2"
|
"typescript-eslint": "^8.46.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_ENV=production bun run ./src/app.ts",
|
"prod": "NODE_ENV=production 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",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ log_info "Starting task with args: $*"
|
|||||||
|
|
||||||
cd /opt/app
|
cd /opt/app
|
||||||
|
|
||||||
if bun run ./src/app.ts "$@" >> /proc/1/fd/1 2>> /proc/1/fd/2; then
|
if bun run start "$@" >> /proc/1/fd/1 2>> /proc/1/fd/2; then
|
||||||
log_info "Task completed successfully."
|
log_info "Task completed successfully."
|
||||||
else
|
else
|
||||||
log_error "Task failed!"
|
log_error "Task failed!"
|
||||||
|
|||||||
Reference in New Issue
Block a user