mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-02-18 01:32:24 +00:00
Merge pull request #13 from larose/nginx-conf
Use app-nginx.conf.sigil if provided
This commit is contained in:
commit
c8ab63c69b
@ -142,10 +142,9 @@ cd "$CUR_DIR"
|
|||||||
if [ -f "$BUILD_DIR/app-nginx.conf.sigil" ] ; then
|
if [ -f "$BUILD_DIR/app-nginx.conf.sigil" ] ; then
|
||||||
echo "-----> Using user provided app-nginx.conf.sigil"
|
echo "-----> Using user provided app-nginx.conf.sigil"
|
||||||
cp "$BUILD_DIR/app-nginx.conf.sigil" "$BUILD_DIR/nginx/app-nginx.conf.sigil"
|
cp "$BUILD_DIR/app-nginx.conf.sigil" "$BUILD_DIR/nginx/app-nginx.conf.sigil"
|
||||||
fi
|
|
||||||
|
|
||||||
# Allow deprecated nginx.conf.erb
|
# Allow deprecated nginx.conf.erb
|
||||||
if [ -f "$BUILD_DIR/nginx.conf.erb" ] ; then
|
elif [ -f "$BUILD_DIR/nginx.conf.erb" ] ; then
|
||||||
echo "-----> DEPRECATED: using user provided nginx.conf.erb"
|
echo "-----> DEPRECATED: using user provided nginx.conf.erb"
|
||||||
cp "$BUILD_DIR/nginx.conf.erb" "$BUILD_DIR/nginx/nginx.conf.erb"
|
cp "$BUILD_DIR/nginx.conf.erb" "$BUILD_DIR/nginx/nginx.conf.erb"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user