sapoku 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sapoku.rb +2 -2
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -61,6 +61,7 @@ class Tadpole
|
|
61
61
|
output += "Creating nginx configuration file"
|
62
62
|
create_nginx_config
|
63
63
|
output += "Rehashing nginx configuration"
|
64
|
+
rehash_nginx
|
64
65
|
return output
|
65
66
|
end
|
66
67
|
|
@@ -107,9 +108,8 @@ class Tadpole
|
|
107
108
|
end
|
108
109
|
|
109
110
|
# reload nginx configuration
|
110
|
-
# TODO: send reload signal instead
|
111
111
|
def rehash_nginx
|
112
|
-
`sudo /
|
112
|
+
`sudo kill -HUP $(cat /opt/nginx/logs/nginx.pid)`
|
113
113
|
end
|
114
114
|
|
115
115
|
# generate a new config file
|