magic_recipes_two 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/magic_recipes/version.rb +1 -1
- data/lib/capistrano/tasks/nginx.rake +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfea4cf22cc935dd51e1c0ed589939e26b22aea7
|
4
|
+
data.tar.gz: 0ce7bda267d8e0beb1d6b8f39682a66531d5e1a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ec01565bef2d3dc622b1a7924463da912212518fc70227bfe4de52d780091aeb19b0ee76726541104a3a4aebae1c6692afeb4ccb196a7afcbe0c39573d50654
|
7
|
+
data.tar.gz: 23338b8914d7a3732580131d497cb7cc5b4733736ce5e711e81ef81a1625c2b53ca96cc194b8e7f10e83830030c8e0d9c20ac300097455a7700640c0e2277528
|
@@ -57,12 +57,14 @@ namespace :nginx do
|
|
57
57
|
within fetch(:sites_available) do
|
58
58
|
config_file = fetch(:nginx_template)
|
59
59
|
if config_file == :default
|
60
|
-
|
61
|
-
|
60
|
+
# config_file = File.expand_path("../../../../config/deploy/templates/nginx.conf.erb", __FILE__)
|
61
|
+
magic_template("nginx.conf", '/tmp/nginx.conf')
|
62
|
+
else
|
63
|
+
template(config_file, '/tmp/nginx.conf')
|
62
64
|
end
|
63
65
|
# config = ERB.new(File.read(config_file)).result(binding)
|
64
66
|
# upload! StringIO.new(config), '/tmp/nginx.conf'
|
65
|
-
|
67
|
+
|
66
68
|
|
67
69
|
execute :sudo, :mv, '/tmp/nginx.conf', "#{fetch(:application)}_#{fetch(:stage)}"
|
68
70
|
end
|