sapoku 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sapoku.rb +7 -0
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -60,6 +60,7 @@ class Tadpole
|
|
60
60
|
create_iptables
|
61
61
|
output += "Creating nginx configuration file"
|
62
62
|
create_nginx_config
|
63
|
+
output += "Rehashing nginx configuration"
|
63
64
|
return output
|
64
65
|
end
|
65
66
|
|
@@ -104,6 +105,12 @@ class Tadpole
|
|
104
105
|
|
105
106
|
system("sudo mv #{@name}_nginx_config /opt/nginx/conf/containers/#{@name}.conf")
|
106
107
|
end
|
108
|
+
|
109
|
+
# reload nginx configuration
|
110
|
+
# TODO: send reload signal instead
|
111
|
+
def rehash_nginx
|
112
|
+
`sudo /etc/init.d/nginx restart`
|
113
|
+
end
|
107
114
|
|
108
115
|
# generate a new config file
|
109
116
|
def create_lxc_config
|