heroku_deploy 0.0.6 → 0.0.7

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/README.markdown CHANGED
@@ -13,8 +13,38 @@ In environment.rb
13
13
  In your Rakefile:
14
14
  begin
15
15
  require 'heroku_deploy'
16
- HerokuDeploy::Tasks.new( :staging_app => "example-app-staging", :production_app => "example-app")
16
+ HerokuDeploy::Tasks.new(
17
+ :staging_app => "example-app-staging",
18
+ :production_app => "example-app")
17
19
  rescue LoadError
18
20
  puts "heroku_deploy (or a dependency) not available. Install it with: gem install heroku_deploy"
19
21
  end
20
22
 
23
+ ###Setup and Deploy
24
+ heroku_deploy assumes that origin/master is your main development branch. Once you have that in place, run:
25
+
26
+ rake heroku_deploy:setup
27
+
28
+ This creates two additional branches: staging and production. These branches hold your deploys.
29
+ It also creates the two heroku apps specified in your Rakefile.
30
+
31
+ Next, deploy to your staging app:
32
+
33
+ rake heroku_deploy:staging
34
+
35
+ Once you've vetted your app at http://example-app-staging.heroku.com, deploy to production:
36
+
37
+ rake heroku_deploy:production
38
+
39
+ It's easy!
40
+
41
+ Doing a deploy will automatically backup and download your code and database in a heroku bundle.
42
+ To back up without deploying, run:
43
+
44
+ rake heroku_deploy:backup:staging
45
+
46
+ or
47
+
48
+ rake heroku_deploy:backup:production
49
+
50
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{heroku_deploy}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ross Hale", "Chris Lemcke"]
@@ -32,15 +32,13 @@ class HerokuDeploy
32
32
  puts "Creating staging branch"
33
33
  puts ""
34
34
  `git branch staging`
35
- `git checkout staging`
36
- `git push origin origin:refs/heads/staging`
35
+ `git push origin origin/master:refs/heads/staging`
37
36
 
38
37
  puts ""
39
38
  puts "Creating production branch"
40
39
  puts ""
41
40
  `git branch production`
42
- `git checkout production`
43
- `git push origin origin:refs/heads/production`
41
+ `git push origin origin/master:refs/heads/production`
44
42
 
45
43
  `git checkout master`
46
44
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ross Hale