1
0

Put configuration in nixpacks.toml
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s

This commit is contained in:
2026-03-19 21:07:08 +01:00
parent f97e0be4c3
commit 578e31e213
2 changed files with 1 additions and 12 deletions

View File

@@ -13,4 +13,4 @@ cmds = [
] ]
[start] [start]
cmd = "./start.sh" cmd = "envsubst '${PORT}' < nginx.conf.template > /tmp/nginx.conf && exec nginx -c /tmp/nginx.conf -g 'daemon off;'"

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PORT="${PORT:-8080}"
# Generate nginx config from template
export PORT
envsubst '${PORT}' < "$SCRIPT_DIR/nginx.conf.template" > /tmp/nginx.conf
exec nginx -c /tmp/nginx.conf -g 'daemon off;'