rails_pwnerer 0.6.88 → 0.6.89

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/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.89. Restored compatibility with Rails 2 apps.
2
+
1
3
  v0.6.88. Use bundle exec when starting / stopping the app server.
2
4
 
3
5
  v0.6.87. Added /etc/gemrc to stop wasting time building RDocs on servers.
@@ -53,8 +53,9 @@ class RailsPwnerer::App::ClusterConfig
53
53
  # TODO: stop processes in parallel
54
54
  frontends.times do |f|
55
55
  fe_port = first_port + f
56
- cmdline = "bundle exec thin stop -a 127.0.0.1 -p #{fe_port} -d " +
56
+ cmdline = "thin stop -a 127.0.0.1 -p #{fe_port} -d " +
57
57
  "-P tmp/pids/fe.#{fe_port}.pid"
58
+ cmdline = 'bundle exec ' + cmdline if File.exist?('Gemfile')
58
59
  cmdline_patterns[1] = "(127.0.0.1:#{fe_port})"
59
60
  RailsPwnerer::Util.kill_process_set(cmdline, "tmp/pids/fe.#{fe_port}.pid",
60
61
  cmdline_patterns, :verbose => false, :sleep_delay => 0.2)
@@ -82,8 +83,8 @@ class RailsPwnerer::App::ClusterConfig
82
83
  RailsPwnerer::App::NginxConfig.new.update app_name, instance_name
83
84
  end
84
85
 
85
- static_cmd = "bundle exec thin start -a 127.0.0.1 -c #{app_path} " +
86
- "-u #{pwnerer_user} -g #{pwnerer_group} -e #{environment} -d "
86
+ static_cmd = "thin start -a 127.0.0.1 -c #{app_path} -u #{pwnerer_user} " +
87
+ "-g #{pwnerer_group} -e #{environment} -d "
87
88
 
88
89
  # TODO: start the servers simultaneously
89
90
  Dir.chdir app_path do
@@ -92,6 +93,7 @@ class RailsPwnerer::App::ClusterConfig
92
93
  else
93
94
  static_cmd << '-A rails '
94
95
  end
96
+ static_cmd = 'bundle exec ' + static_cmd if File.exist?('Gemfile')
95
97
 
96
98
  frontends.times do |f|
97
99
  fe_port = first_port + f
@@ -21,7 +21,7 @@ module RailsPwnerer::Base
21
21
  end
22
22
  end
23
23
 
24
- def kill_tree
24
+ def kill_tree(pid)
25
25
  Zerg::Support::Process.kill_tree pid
26
26
  end
27
27
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.88"
5
+ s.version = "0.6.89"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 183
4
+ hash: 181
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 88
10
- version: 0.6.88
9
+ - 89
10
+ version: 0.6.89
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan