Merge pull request #1841 from dokku/1806_mh-nginx-build-config-no-deploy
don't build nginx config if the app has not been deployed
This commit is contained in:
@@ -235,8 +235,13 @@ EOF
|
|||||||
echo "}" >> $NGINX_CONF
|
echo "}" >> $NGINX_CONF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dokku_log_info1 "Creating $SCHEME nginx.conf"
|
if is_deployed "$APP"; then
|
||||||
mv $NGINX_CONF "$DOKKU_ROOT/$APP/nginx.conf"
|
dokku_log_info1 "Creating $SCHEME nginx.conf"
|
||||||
|
mv $NGINX_CONF "$DOKKU_ROOT/$APP/nginx.conf"
|
||||||
|
else
|
||||||
|
dokku_log_info1 "App $APP has not been deployed. Skipping nginx config creation"
|
||||||
|
rm -f $NGINX_CONF
|
||||||
|
fi
|
||||||
|
|
||||||
if is_deployed "$APP"; then
|
if is_deployed "$APP"; then
|
||||||
dokku_log_info1 "Running nginx-pre-reload"
|
dokku_log_info1 "Running nginx-pre-reload"
|
||||||
|
|||||||
Reference in New Issue
Block a user