From f823839503293fb11568077783162b4f606ec660 Mon Sep 17 00:00:00 2001 From: Archben Date: Mon, 9 Mar 2026 07:25:54 +0000 Subject: [PATCH] Updates --- docker/services/web/entrypoint.sh | 4 ++-- src/scripts/shell/init.sh | 5 ++++- src/scripts/shell/start-dev.sh | 2 ++ src/scripts/shell/start-prod.sh | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docker/services/web/entrypoint.sh b/docker/services/web/entrypoint.sh index e81ddc1..635a882 100644 --- a/docker/services/web/entrypoint.sh +++ b/docker/services/web/entrypoint.sh @@ -2,8 +2,8 @@ cd /app -chmod +x init.sh -./init.sh +chmod +x ./src/scripts/shell/init.sh +./src/scripts/shell/init.sh if [ $NODE_ENV = "production" ]; then echo "Production Environment" diff --git a/src/scripts/shell/init.sh b/src/scripts/shell/init.sh index ea2beaf..2e2d1ff 100755 --- a/src/scripts/shell/init.sh +++ b/src/scripts/shell/init.sh @@ -10,4 +10,7 @@ bun twui:add || echo "TWUI Already Added" bun twui:init || echo "TWUI Already Initialized" bun twui:update -bunx nsqlite schema -t \ No newline at end of file +bunx nsqlite schema -t + +chmod +x ./src/scripts/shell/start-dev.sh +chmod +x ./src/scripts/shell/start-prod.sh \ No newline at end of file diff --git a/src/scripts/shell/start-dev.sh b/src/scripts/shell/start-dev.sh index ab4a7ed..7f7bc64 100755 --- a/src/scripts/shell/start-dev.sh +++ b/src/scripts/shell/start-dev.sh @@ -1,5 +1,7 @@ #!/bin/bash +pm2 kill + pm2 start --name turboci-web 'bunx next dev -p 3772' pm2 start --name turboci-cron 'bun --watch src/cron/index.ts' pm2 start --name turboci-websocket 'bun --watch src/websocket/index.ts' \ No newline at end of file diff --git a/src/scripts/shell/start-prod.sh b/src/scripts/shell/start-prod.sh index 1a69e8c..76a8ec9 100755 --- a/src/scripts/shell/start-prod.sh +++ b/src/scripts/shell/start-prod.sh @@ -1,5 +1,7 @@ #!/bin/bash +pm2 kill + pm2 start --name turboci-web 'bunx next start -p 3772' pm2 start --name turboci-cron 'bun src/cron/index.ts' pm2 start --name turboci-websocket 'bun src/websocket/index.ts' \ No newline at end of file