recipiez 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/recipes/node.rb ADDED
@@ -0,0 +1,17 @@
1
+ Capistrano::Configuration.instance(true).load do
2
+
3
+ namespace :node do
4
+
5
+ desc "Generates upstart file for the application"
6
+ task :generate_upstart do
7
+ unless exists? :node_env
8
+ set :node_env, 'development'
9
+ end
10
+
11
+ put render("upstart", binding), "#{application}.conf"
12
+ sudo "mv #{application}.conf /etc/init/#{application}.conf"
13
+ end
14
+
15
+ end
16
+
17
+ end
@@ -0,0 +1,14 @@
1
+ #!upstart
2
+
3
+ description "Generated Upstart Node Config"
4
+ author "Alastair Brunton"
5
+
6
+ start on (local-filesystems and net-device-up IFACE=eth0)
7
+ stop on shutdown
8
+
9
+ respawn # restart when job dies
10
+ respawn limit 5 60 # give up restart after 5 respawns in 60 seconds
11
+
12
+ script
13
+ exec NODE_ENV=<%= node_env %> node <%= current_path %>/app/app.js >> <%= current_path %>/log/<%= node_env %>.log 2>&1
14
+ end script
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.5"
7
+ s.version = "0.0.6"
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-06 00:00:00 +01:00
18
+ date: 2011-10-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -57,7 +57,6 @@ extra_rdoc_files: []
57
57
 
58
58
  files:
59
59
  - .gitignore
60
- - History.txt
61
60
  - MIT-LICENSE
62
61
  - README.textile
63
62
  - lib/activecollab_notifier.rb
@@ -70,6 +69,7 @@ files:
70
69
  - recipes/logrotate.rb
71
70
  - recipes/monit.rb
72
71
  - recipes/nginx.rb
72
+ - recipes/node.rb
73
73
  - recipes/render.rb
74
74
  - recipes/templates/apache_monit.erb
75
75
  - recipes/templates/logrotate.erb
@@ -83,6 +83,7 @@ files:
83
83
  - recipes/templates/recipiez.yml.example
84
84
  - recipes/templates/sshd_monit.erb
85
85
  - recipes/templates/thin_monit.erb
86
+ - recipes/templates/upstart.erb
86
87
  - recipes/thin.rb
87
88
  - recipes/tolk.rb
88
89
  - recipiez.gemspec
data/History.txt DELETED
@@ -1 +0,0 @@
1
- * Initial development - 9/1/08