recipiez 0.0.8 → 0.0.9

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/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
@@ -11,6 +11,7 @@ Capistrano::Configuration.instance(true).load do
11
11
  put render("upstart", binding), "#{application}.conf"
12
12
  sudo "mv #{application}.conf /etc/init/#{application}.conf"
13
13
  end
14
+
14
15
 
15
16
  end
16
17
 
data/recipiez.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "recipiez"
7
- s.version = "0.0.8"
7
+ s.version = "0.0.9"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Alastair Brunton"]
10
10
  s.email = ["info@simplyexcited.co.uk"]
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton