rails_pwnerer 0.5.9 → 0.5.10

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.5.10. Fixed bug in nginx reconfiguration on startup.
2
+
1
3
  v0.5.9. Better method for locating gems.
2
4
 
3
5
  v0.5.8. Fixed crashing in base/process.rb when sys-proctable isn't there (scaffolding time).
@@ -123,7 +123,7 @@ class RailsPwnage::App::ClusterConfig
123
123
  if app_config[:port0] == 0
124
124
  manage_ports app_name, instance_name, :alloc
125
125
  configure_mongrels app_name, instance_name
126
- RailsPwnage::App::NginxConfig.new app_name, instance_name
126
+ RailsPwnage::App::NginxConfig.new.update app_name, instance_name
127
127
  end
128
128
 
129
129
  Dir.chdir app_config[:app_path] do
@@ -135,6 +135,7 @@ class RailsPwnage::App::ClusterConfig
135
135
  manage_ports app_name, instance_name, :alloc
136
136
  configure_mongrels app_name, instance_name
137
137
  fix_permissions app_name, instance_name
138
+ # no need to configure nginx here, it'll be done by the executor
138
139
  end
139
140
 
140
141
  def update(app_name, instance_name, &update_proc)
@@ -146,6 +147,7 @@ class RailsPwnage::App::ClusterConfig
146
147
  configure_mongrels app_name, instance_name
147
148
  fix_permissions app_name, instance_name
148
149
  start_mongrels app_name, instance_name
150
+ RailsPwnage::App::NginxConfig.new.update app_name, instance_name
149
151
  end
150
152
 
151
153
  def remove(app_name, instance_name)
@@ -77,6 +77,7 @@ NGINX_CONFIG
77
77
  def control_all(action)
78
78
  case action
79
79
  when :start
80
+ control_boot_script('nginx', :reload)
80
81
  control_boot_script('nginx', :start)
81
82
  when :stop
82
83
  control_boot_script('nginx', :stop)
@@ -1,11 +1,11 @@
1
1
 
2
- # Gem::Specification for Rails_pwnerer-0.5.9
2
+ # Gem::Specification for Rails_pwnerer-0.5.10
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: rails_pwnerer
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.5.9
8
+ version: 0.5.10
9
9
  platform: ruby
10
10
  authors:
11
11
  - Victor Costan
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan