capistrano-toolbox 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capistrano-toolbox/nginx.rb +2 -2
- metadata +2 -2
@@ -9,14 +9,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
9
9
|
task :update_config do
|
10
10
|
config_dir = fetch(:nginx_remote_config_dir)
|
11
11
|
|
12
|
-
config = fetch(:nginx_config)
|
12
|
+
config = fetch(:nginx_config, nil)
|
13
13
|
if config
|
14
14
|
available_path = File.join(config_dir, "#{application}.conf")
|
15
15
|
put_as_root(config, available_path)
|
16
16
|
surun "nxensite #{application}.conf"
|
17
17
|
end
|
18
18
|
|
19
|
-
ssl_config = fetch(:nginx_ssl_config)
|
19
|
+
ssl_config = fetch(:nginx_ssl_config, nil)
|
20
20
|
if ssl_config
|
21
21
|
available_ssl_path = File.join(config_dir, "#{application}-ssl.conf")
|
22
22
|
put_as_root(ssl_config, available_ssl_path)
|