Put configuration in nixpacks.toml
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s
This commit is contained in:
@@ -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;'"
|
||||||
|
|||||||
11
start.sh
11
start.sh
@@ -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;'
|
|
||||||
Reference in New Issue
Block a user