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 +2 -0
- data/lib/rails_pwnerer/app/cluster_config.rb +5 -3
- data/lib/rails_pwnerer/base/process.rb +1 -1
- data/rails_pwnerer.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -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 = "
|
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 = "
|
86
|
-
"-
|
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
|
data/rails_pwnerer.gemspec
CHANGED
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:
|
4
|
+
hash: 181
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 89
|
10
|
+
version: 0.6.89
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|