Fixed __start-deployment-server script. #55.

parent c0a8a3a8
......@@ -61,7 +61,7 @@ if [ -f /etc/init.d/nginx ]; then
# Otherwise re-write and restart nginx.
echo "[DEPLOY] Rewriting nginx config with new port."
# Write out new nginx template to default available site.
sudo echo $WAYSTONE_PORT | xargs -I{} sh -c "sed -e 's/SERVICE_ADDR/localhost:{}/' /home/git/waystone.template > /etc/nginx/sites-available/waystone" -- {}
echo $WAYSTONE_PORT | xargs -I{} sh -c "sed -e 's/SERVICE_ADDR/localhost:{}/' /home/git/waystone.template > /etc/nginx/sites-available/waystone" -- {}
# Reload nginx
echo "[DEPLOY] Restarting nginx."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment