Compare commits

...
2 Commits
Author SHA1 Message Date
asepharyana b35b00376d feat: add dependabot config (npm) 2026-08-25 18:12:58 +07:00
asepharyana 036f67d05a chore: update ports to 4007/4008 2026-08-02 14:31:27 +07:00
2 changed files with 46 additions and 7 deletions
+39
View File
@@ -0,0 +1,39 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
labels: ["dependencies"]
groups:
production:
dependency-type: "production"
development:
dependency-type: "development"
- package-ecosystem: "npm"
directory: "/services/backend"
schedule:
interval: "daily"
labels: ["dependencies"]
groups:
production:
dependency-type: "production"
- package-ecosystem: "npm"
directory: "/services/discord-gateway"
schedule:
interval: "daily"
labels: ["dependencies"]
groups:
production:
dependency-type: "production"
- package-ecosystem: "npm"
directory: "/services/frontend"
schedule:
interval: "daily"
labels: ["dependencies"]
groups:
production:
dependency-type: "production"
+7 -7
View File
@@ -48,20 +48,20 @@ echo "Starting tools-workers ($WORKER_BIN)..."
"$WORKER_BIN" & "$WORKER_BIN" &
WORKER_PID=$! WORKER_PID=$!
# ── 4. Start Next.js Frontend (port 3000) ── # ── 4. Start Next.js Frontend (port 4007) ──
if command -v bun &>/dev/null && [ -f /app/node_modules/.bin/next ]; then if command -v bun &>/dev/null && [ -f /app/node_modules/.bin/next ]; then
echo "Starting Next.js frontend on port 3000..." echo "Starting Next.js frontend on port 4007..."
cd /app cd /app
NODE_ENV=production RUST_GATEWAY_URL=http://localhost:3001 \ NODE_ENV=production RUST_GATEWAY_URL=http://localhost:4008 \
bun run next start --port 3000 & bun run next start --port 4007 &
NEXT_PID=$! NEXT_PID=$!
echo "Next.js frontend started (PID: $NEXT_PID)" echo "Next.js frontend started (PID: $NEXT_PID)"
elif command -v node &>/dev/null && [ -f /app/node_modules/.bin/next ]; then elif command -v node &>/dev/null && [ -f /app/node_modules/.bin/next ]; then
echo "Starting Next.js frontend on port 3000..." echo "Starting Next.js frontend on port 4007..."
cd /app cd /app
NODE_ENV=production RUST_GATEWAY_URL=http://localhost:3001 \ NODE_ENV=production RUST_GATEWAY_URL=http://localhost:4008 \
node /app/node_modules/.bin/next start --port 3000 & node /app/node_modules/.bin/next start --port 4007 &
NEXT_PID=$! NEXT_PID=$!
echo "Next.js frontend started (PID: $NEXT_PID)" echo "Next.js frontend started (PID: $NEXT_PID)"
else else