Try using the system location for nginx configuration

This will help us use the system nginx service
This commit is contained in:
Girish Ramakrishnan
2015-01-17 08:27:44 -08:00
parent 3830c10090
commit ffd6653869
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -85,6 +85,9 @@ PATH=$PATH:$SRCDIR/node_modules/.bin npm run-script migrate_data
EOF
echo "==== Setup nginx ===="
rm -rf /etc/nginx/* && echo "include $NGINX_CONFIG_DIR/nginx.conf;" > /etc/nginx/nginx.conf
unlink /etc/nginx 2>/dev/null || rm -rf /etc/nginx
ln -s $NGINX_CONFIG_DIR /etc/nginx
mkdir -p $NGINX_APPCONFIG_DIR
cp $SRCDIR/postinstall/nginx/nginx.conf $NGINX_CONFIG_DIR/nginx.conf
cp $SRCDIR/postinstall/nginx/mime.types $NGINX_CONFIG_DIR/mime.types
+1 -1
View File
@@ -17,7 +17,7 @@ echo "Writing supervisor configs..."
cat > /etc/supervisor/conf.d/nginx.conf <<EOF
[program:nginx]
command=/usr/sbin/nginx -c "$NGINX_CONFIG_DIR/nginx.conf" -p /var/log/nginx/
command=/usr/sbin/nginx
autostart=true
autorestart=true
redirect_stderr=true