rails_pwnerer 0.6.85 → 0.6.86

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.86. Apps start right after they're installed.
2
+
1
3
  v0.6.85. Ignores bad configuration files in the application.
2
4
 
3
5
  v0.6.84. Configured nginx to set cache headers for static files.
data/README CHANGED
@@ -55,11 +55,8 @@ sudo rpwn install you@your.repository.host/path/to/your_application.git
55
55
  or
56
56
 
57
57
  sudo rpwn install p4://you:yourpass@host:port/path/to/your/application
58
-
59
- 5) Reboot, or start the services right away:
60
- sudo rpwn go live
61
58
 
62
- 6) Maintain your application
59
+ 5) Maintain your application
63
60
 
64
61
  * Push the updates in the SVN repository:
65
62
  sudo rpwn update your_application
@@ -88,6 +85,9 @@ sudp rpwn rekey your_application
88
85
  * Bring down all the applications (panic mode):
89
86
  sudo rpwn go down
90
87
 
88
+ * Bring all the applications back up (out of panic mode):
89
+ sudo rpwn go live
90
+
91
91
  * Reset your database (drops and re-creates, useful in staging instances):
92
92
  sudo rpwn db_reset your_application
93
93
  (you need to read the next section on instances and configuration, and set
@@ -30,6 +30,9 @@ module RailsPwnerer::App
30
30
  [Config, Files, Gems, Database, ClusterConfig, NginxConfig, Scripts].each do |mod|
31
31
  mod.new.setup app, instance
32
32
  end
33
+ Scripts.new.pre_start app, instance
34
+ ClusterConfig.new.start app, instance
35
+ Scripts.new.post_start app, instance
33
36
  else
34
37
  if success == :next
35
38
  print "rails_pwange only supports git, subversion, and perforce at this time. \n"
@@ -85,6 +85,7 @@ NGINX_CONFIG
85
85
  def setup(app_name, instance_name)
86
86
  config_nginx app_name, instance_name
87
87
  remove_nginx_stub
88
+ control_boot_script('nginx', :reload)
88
89
  end
89
90
 
90
91
  def update(app_name, instance_name)
@@ -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.85"
5
+ s.version = "0.6.86"
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: 173
4
+ hash: 171
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 85
10
- version: 0.6.85
9
+ - 86
10
+ version: 0.6.86
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan