factorylabs-fdlcap 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.15
1
+ 0.3.16
data/fdlcap.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fdlcap}
8
- s.version = "0.3.15"
8
+ s.version = "0.3.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Factory Design Labs"]
12
- s.date = %q{2009-08-24}
12
+ s.date = %q{2009-08-27}
13
13
  s.default_executable = %q{fdlcap}
14
14
  s.email = %q{interactive@factorylabs.com}
15
15
  s.executables = ["fdlcap"]
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
42
42
  "lib/fdlcap/recipes/geminstaller.rb",
43
43
  "lib/fdlcap/recipes/newrelic.rb",
44
44
  "lib/fdlcap/recipes/nginx.rb",
45
+ "lib/fdlcap/recipes/passenger.rb",
45
46
  "lib/fdlcap/recipes/performance.rb",
46
47
  "lib/fdlcap/recipes/rake.rb",
47
48
  "lib/fdlcap/recipes/rsync.rb",
@@ -31,11 +31,11 @@ Capistrano::Configuration.instance(:must_exist).load do
31
31
 
32
32
  %w( start stop restart reload ).each do |cmd|
33
33
  desc "#{cmd} your nginx servers"
34
- task "#{cmd}".to_sym, :roles => :web do
34
+ task "#{cmd}".to_sym, :roles => :app do
35
35
  default_run_options[:pty] = true
36
- sudo "/etc/init.d/nginx #{cmd}"
36
+ sudo "nohup /etc/init.d/nginx #{cmd} > /dev/null"
37
37
  end
38
- end
38
+ end
39
39
 
40
40
  desc "Setup Nginx vhost config"
41
41
  task :vhost, :roles => :web do
@@ -0,0 +1,17 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ define_recipe :passenger do
3
+ namespace :deploy do
4
+ task :start, :roles => :app do
5
+ run "touch #{current_release}/tmp/restart.txt"
6
+ end
7
+
8
+ task :stop, :roles => :app do
9
+ # Do nothing.
10
+ end
11
+
12
+ task :restart, :roles => :app do
13
+ run "touch #{current_release}/tmp/restart.txt"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,7 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
  define_recipe :sinatra_passenger do
3
+ use_recipe :passenger
4
+
3
5
  namespace :sinatra_passenger do
4
6
  desc "Set file permissions"
5
7
  task :chmod_directories_config do
@@ -15,4 +17,5 @@ Capistrano::Configuration.instance(:must_exist).load do
15
17
  after "deploy:update_code", "sinatra_passenger:chmod_directories_config"
16
18
  after "deploy:update_code", "sinatra_passenger:chmod_directories_public"
17
19
  end
20
+
18
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-24 00:00:00 -07:00
12
+ date: 2009-08-27 00:00:00 -07:00
13
13
  default_executable: fdlcap
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -86,6 +86,7 @@ files:
86
86
  - lib/fdlcap/recipes/geminstaller.rb
87
87
  - lib/fdlcap/recipes/newrelic.rb
88
88
  - lib/fdlcap/recipes/nginx.rb
89
+ - lib/fdlcap/recipes/passenger.rb
89
90
  - lib/fdlcap/recipes/performance.rb
90
91
  - lib/fdlcap/recipes/rake.rb
91
92
  - lib/fdlcap/recipes/rsync.rb
@@ -106,7 +107,6 @@ files:
106
107
  - test/test_helper.rb
107
108
  has_rdoc: false
108
109
  homepage: http://github.com/factorylabs/fdlcap
109
- licenses:
110
110
  post_install_message:
111
111
  rdoc_options:
112
112
  - --charset=UTF-8
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements: []
128
128
 
129
129
  rubyforge_project:
130
- rubygems_version: 1.3.5
130
+ rubygems_version: 1.2.0
131
131
  signing_key:
132
132
  specification_version: 3
133
133
  summary: a set of capistrano recipies we use regularly at Factory Design Labs