Merge pull request #81 from eugeneware/remove_socket_file

Fix for nginx not reloading.
This commit is contained in:
Jeff Lindsay committed 2013-07-24 16:02:29 -07:00
commit bb59f47cab
1 file changed
+6
+6
View File
@@ -6,7 +6,13 @@ apt-get update
apt-get install -y nginx dnsutils apt-get install -y nginx dnsutils
cat<<EOF > /etc/init/nginx-reloader.conf cat<<EOF > /etc/init/nginx-reloader.conf
description "Dokku nginx reloader service"
start on runlevel [2345]
stop on runlevel [!2345]
script script
[[ -f /home/git/reload-nginx ]] && rm -rf /home/git/reload-nginx
echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload
end script end script
respawn respawn