recipiez 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/nginx.rb +24 -0
- data/recipes/node.rb +1 -0
- data/recipiez.gemspec +1 -1
- metadata +3 -3
data/recipes/nginx.rb
CHANGED
@@ -22,6 +22,30 @@ Capistrano::Configuration.instance(true).load do
|
|
22
22
|
# do nothing
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
|
27
|
+
desc "Generates a simple proxy configuration for a nodejs application"
|
28
|
+
task :nodejs do
|
29
|
+
put render("nginx_node", binding), "#{application}.conf"
|
30
|
+
sudo "mv #{application}.conf /etc/nginx/sites-available/#{application}.conf"
|
31
|
+
begin
|
32
|
+
sudo "ln -s /etc/nginx/sites-available/#{application}.conf /etc/nginx/sites-enabled/#{application}.conf"
|
33
|
+
rescue
|
34
|
+
# do nothing
|
35
|
+
end
|
36
|
+
|
37
|
+
begin
|
38
|
+
stop
|
39
|
+
rescue
|
40
|
+
# do nothing
|
41
|
+
end
|
42
|
+
|
43
|
+
begin
|
44
|
+
start
|
45
|
+
rescue
|
46
|
+
# do nothing
|
47
|
+
end
|
48
|
+
end
|
25
49
|
|
26
50
|
desc "Starts Nginx webserver"
|
27
51
|
task :start, :roles => :web do
|
data/recipes/node.rb
CHANGED
data/recipiez.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recipiez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alastair Brunton
|