shoestrap 0.3.0.pre → 0.3.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module Shoestrap
25
25
  end
26
26
 
27
27
  def add_app_name
28
- inject_into_file 'config/application.rb', "\n Rails.configuration.app_name = '#{app_name}'\n", :after => 'class Application < Rails::Application'
28
+ inject_into_file 'config/application.rb', "\n config.app_name = '#{app_name}'\n", :after => 'class Application < Rails::Application'
29
29
  end
30
30
 
31
31
  private
@@ -10,31 +10,35 @@ task :post_deploy => :environment do
10
10
  # Precompile assets
11
11
  #
12
12
  puts 'Precompiling assets'
13
+ puts '[ rake assets:precompile ]'
13
14
  Rake::Task["assets:precompile"].invoke
14
15
 
15
16
  #
16
17
  # Run migrations
17
18
  #
18
19
  puts 'Running migrations if necessary'
20
+ puts '[ rake db:migrate ]'
19
21
  Rake::Task["db:migrate"].invoke
20
22
 
21
23
  #
22
24
  # Trigger Unicorn reexec with 0 downtime
23
25
  #
24
26
  puts 'restarting unicorns'
25
- # TODO: inject Rails.configuration.app_name into application.rb, document in changelog! (this should be done in the deployment generator!)
27
+ puts "[ #{ENV['HOME']}/unicorn.sh upgrade #{Rails.configuration.app_name}_#{Rails.env} ]"
26
28
  system "#{ENV['HOME']}/unicorn.sh upgrade #{Rails.configuration.app_name}_#{Rails.env}"
27
29
 
28
30
  #
29
31
  # Enable monit monitoring
30
32
  #
31
33
  puts 'enable monit'
34
+ puts "[ monit -g #{Rails.configuration.app_name}_#{Rails.env} monitor ]"
32
35
  system "monit -g #{Rails.configuration.app_name}_#{Rails.env} monitor"
33
36
 
34
37
  #
35
38
  # Notify Airbrake of deployment
36
39
  #
37
40
  puts 'notifying airbrake'
41
+ puts "[ rake airbrake:deploy TO=#{Rails.env} REVISION=$(git rev-parse HEAD) ]"
38
42
  system "rake airbrake:deploy TO=#{Rails.env} REVISION=$(git rev-parse HEAD)"
39
43
  end
40
44
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "shoestrap"
6
- s.version = '0.3.0.pre'
6
+ s.version = '0.3.0.pre1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Immanuel Häussermann", "Felipe Kaufmann", "Phil Schilter", "Noëlle Rosenberg"]
9
9
  s.email = "info@screenconcept.ch"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoestrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre
4
+ version: 0.3.0.pre1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-04-25 00:00:00.000000000 Z
15
+ date: 2013-04-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec