15 lines
357 B
Bash
15 lines
357 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Start Next.js admin panel in background on port 3000
|
|
HOSTNAME="0.0.0.0" PORT=3000 node /app/server.js &
|
|
|
|
# Optional: small log so you know it started
|
|
echo "Started Next.js admin on :3000" >&2
|
|
|
|
# Wait a bit so proxy doesn't hit it before it's listening
|
|
sleep 3
|
|
|
|
# Start Go API (uses PORT env from Dokku, defaults to 5000)
|
|
exec /app/api
|