Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/eval-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

CONFIG_ROOT="${NGINX_CONFIG_ROOT:=config}"
CONFIG_FILE="${NGINX_CONFIG_FILE:=nginx.conf.erb}"

# Evaluate config to get $PORT
erb $CONFIG_ROOT/$CONFIG_FILE > config/nginx.conf
3 changes: 1 addition & 2 deletions bin/start-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ psmgr=/tmp/nginx-buildpack-wait
rm -f $psmgr
mkfifo $psmgr

# Evaluate config to get $PORT
erb config/nginx.conf.erb > config/nginx.conf
./eval-config

n=1
while getopts :f option ${@:1:2}
Expand Down
3 changes: 1 addition & 2 deletions bin/start-nginx-debug
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ psmgr=/tmp/nginx-buildpack-wait
rm -f $psmgr
mkfifo $psmgr

# Evaluate config to get $PORT
erb config/nginx.conf.erb > config/nginx.conf
./eval-config

n=1
while getopts :f option ${@:1:2}
Expand Down
3 changes: 1 addition & 2 deletions bin/start-nginx-solo
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ psmgr=/tmp/nginx-buildpack-wait
rm -f $psmgr
mkfifo $psmgr

# Evaluate config to get $PORT
erb config/nginx.conf.erb > config/nginx.conf
./eval-config

n=1
while getopts :f option ${@:1:2}
Expand Down