factorylabs-fdlcap 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fdlcap.gemspec +1 -1
- data/lib/fdlcap/recipes/nginx.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/fdlcap.gemspec
CHANGED
data/lib/fdlcap/recipes/nginx.rb
CHANGED
@@ -39,7 +39,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
39
39
|
|
40
40
|
desc "Setup Nginx vhost config"
|
41
41
|
task :vhost, :roles => :web do
|
42
|
-
result = render_erb_template(File.dirname(__FILE__)
|
42
|
+
result = render_erb_template(File.join(File.dirname(__FILE__), '..','templates','nginx.vhost.conf.erb'))
|
43
43
|
put result, "/tmp/nginx.vhost.conf"
|
44
44
|
sudo "mkdir -p /etc/nginx/vhosts"
|
45
45
|
sudo "cp /tmp/nginx.vhost.conf /etc/nginx/vhosts/#{application}.conf"
|
@@ -48,7 +48,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
48
48
|
|
49
49
|
desc "Setup Nginx vhost auth config"
|
50
50
|
task :vhost_auth, :roles => :web do
|
51
|
-
result = render_erb_template(File.dirname(__FILE__)
|
51
|
+
result = render_erb_template(File.join(File.dirname(__FILE__), '..','templates','nginx.auth.conf.erb'))
|
52
52
|
put result, "/tmp/nginx.auth.conf"
|
53
53
|
sudo "mkdir -p /etc/nginx/vhosts"
|
54
54
|
sudo "cp /tmp/nginx.vhost.conf /etc/nginx/vhosts/#{application}.auth.conf"
|
@@ -74,7 +74,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
74
74
|
task :conf, :roles => :web do
|
75
75
|
if can_configure_nginx
|
76
76
|
|
77
|
-
result = render_erb_template(File.dirname(__FILE__)
|
77
|
+
result = render_erb_template(File.join(File.dirname(__FILE__),'..','templates','nginx.conf.erb')
|
78
78
|
put result, "/tmp/nginx.conf"
|
79
79
|
sudo "cp /tmp/nginx.conf /etc/nginx/nginx.conf"
|
80
80
|
|