heroku_san 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +37 -27
- data/heroku_san.gemspec +2 -2
- data/lib/heroku_san/tasks.rb +3 -3
- metadata +29 -3
data/README.rdoc
CHANGED
@@ -28,15 +28,18 @@ Rake tasks are not automatically loaded from gems, so you’ll need to add the f
|
|
28
28
|
|
29
29
|
== Configure
|
30
30
|
|
31
|
-
In config/heroku.yml you will need add the Heroku apps that you would like to attach to this project. You can generate this file
|
32
|
-
|
31
|
+
In config/heroku.yml you will need to add the Heroku apps that you would like to attach to this project. You can generate this file by running:
|
32
|
+
|
33
33
|
rake heroku:create_config
|
34
34
|
|
35
|
-
If this is a fresh project, heroku_san can create all the applications for
|
36
|
-
you, and set the RACK_ENV.
|
35
|
+
Customize the file for your project. If this is a fresh project, heroku_san can create all the applications for you, and set each one's RACK_ENV.
|
37
36
|
|
38
37
|
rake all heroku:create heroku:rack_env
|
39
38
|
|
39
|
+
Configure your Heroku apps according to config/heroku.yml by running:
|
40
|
+
|
41
|
+
rake all heroku:config
|
42
|
+
|
40
43
|
== Usage
|
41
44
|
|
42
45
|
After configuring your Heroku apps you can use rake tasks to control the
|
@@ -65,29 +68,35 @@ Need to add remotes for each app?
|
|
65
68
|
|
66
69
|
A full list of tasks provided:
|
67
70
|
|
68
|
-
rake
|
69
|
-
rake
|
70
|
-
rake
|
71
|
-
rake
|
72
|
-
rake
|
73
|
-
rake
|
74
|
-
rake
|
75
|
-
rake
|
76
|
-
rake
|
77
|
-
rake heroku:
|
78
|
-
rake heroku:
|
79
|
-
rake heroku:
|
80
|
-
rake heroku:
|
81
|
-
rake heroku:
|
82
|
-
rake heroku:
|
83
|
-
rake heroku:
|
84
|
-
rake heroku:
|
85
|
-
rake heroku:
|
86
|
-
rake heroku:
|
87
|
-
rake heroku:
|
88
|
-
rake
|
89
|
-
rake
|
90
|
-
rake
|
71
|
+
rake after_deploy # Callback after deploys
|
72
|
+
rake all # Select all Heroku apps for later command
|
73
|
+
rake before_deploy # Callback before deploys
|
74
|
+
rake capture # Captures a bundle on Heroku
|
75
|
+
rake console # Opens a remote console
|
76
|
+
rake db:pull # Pull the Heroku database
|
77
|
+
rake db:push # Push local database to Heroku database
|
78
|
+
rake deploy[commit] # Pushes the given commit, migrates and restarts (default: HEAD)
|
79
|
+
rake deploy:force[commit] # Force-pushes the given commit, migrates and restarts (default: HEAD)
|
80
|
+
rake heroku:apps # Lists configured apps
|
81
|
+
rake heroku:apps:local # Lists configured apps without hitting Heroku
|
82
|
+
rake heroku:config # Add config:vars to each application
|
83
|
+
rake heroku:config:list # Lists config variables as set on Heroku
|
84
|
+
rake heroku:config:list:local # Lists local config variables without setting them
|
85
|
+
rake heroku:create # Creates the Heroku app
|
86
|
+
rake heroku:create_config # Creates an example configuration file
|
87
|
+
rake heroku:gems # Generate the Heroku gems manifest from gem dependencies
|
88
|
+
rake heroku:maintenance # Enable maintenance mode
|
89
|
+
rake heroku:maintenance_off # Disable maintenance mode
|
90
|
+
rake heroku:push[commit] # Pushes the given commit (default: HEAD)
|
91
|
+
rake heroku:push:force[commit] # Force-pushes the given commit (default: HEAD)
|
92
|
+
rake heroku:rack_env # Add proper RACK_ENV to each application
|
93
|
+
rake heroku:rake[task] # Runs a rake task remotely
|
94
|
+
rake heroku:remotes # Add git remotes for all apps in this project
|
95
|
+
rake heroku:share # Adds a collaborator
|
96
|
+
rake heroku:unshare # Removes a collaborator
|
97
|
+
rake logs # Shows the Heroku logs
|
98
|
+
rake migrate # Migrates and restarts remote servers
|
99
|
+
rake restart # Restarts remote servers
|
91
100
|
|
92
101
|
Frequently used tasks are not namespaced, everything else lives under heroku.
|
93
102
|
|
@@ -111,6 +120,7 @@ Issue Tracker:: http://github.com/fastestforward/heroku_san/issues
|
|
111
120
|
* Ryan Ahearn (ryan@craftsoftwaresolutions.com)
|
112
121
|
* Jon Wood (jon@blankpad.net)
|
113
122
|
* Mat Schaffer (mat@schaffer.me)
|
123
|
+
* Jonathan Hironaga (jonathan.hironaga@halogennetwork.com)
|
114
124
|
|
115
125
|
== License
|
116
126
|
|
data/heroku_san.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{heroku_san}
|
5
|
-
s.version = "1.2.
|
5
|
+
s.version = "1.2.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Elijah Miller", "Glenn Roberts", "Ryan Ahearn"]
|
9
|
-
s.date = %q{2011-
|
9
|
+
s.date = %q{2011-08-19}
|
10
10
|
s.description = %q{Manage multiple Heroku instances/apps for a single Rails app using Rake}
|
11
11
|
s.email = %q{elijah.miller@gmail.com}
|
12
12
|
s.homepage = %q{http://github.com/glennr/heroku_san}
|
data/lib/heroku_san/tasks.rb
CHANGED
@@ -121,7 +121,7 @@ namespace :heroku do
|
|
121
121
|
end
|
122
122
|
|
123
123
|
namespace :apps do
|
124
|
-
desc 'Lists configured apps without hitting
|
124
|
+
desc 'Lists configured apps without hitting Heroku'
|
125
125
|
task :local => :all do
|
126
126
|
each_heroku_app do |name, app, repo|
|
127
127
|
puts "#{name} is shorthand for the Heroku app #{app} located at:"
|
@@ -159,7 +159,7 @@ namespace :heroku do
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
-
desc 'Add config:vars to each application
|
162
|
+
desc 'Add config:vars to each application'
|
163
163
|
task :config do
|
164
164
|
retrieve_configuration
|
165
165
|
each_heroku_app do |name, app, repo, config|
|
@@ -320,7 +320,7 @@ namespace :db do
|
|
320
320
|
end
|
321
321
|
end
|
322
322
|
|
323
|
-
desc 'Push local database
|
323
|
+
desc 'Push local database to Heroku database'
|
324
324
|
task :push do
|
325
325
|
dbconfig = YAML.load(ERB.new(File.read(Rails.root.join('config/database.yml'))).result)[Rails.env]
|
326
326
|
return if dbconfig['adapter'] != 'postgresql'
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_san
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
- 3
|
10
|
+
version: 1.2.3
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Elijah Miller
|
@@ -12,7 +17,7 @@ autorequire:
|
|
12
17
|
bindir: bin
|
13
18
|
cert_chain: []
|
14
19
|
|
15
|
-
date: 2011-
|
20
|
+
date: 2011-08-19 00:00:00 -04:00
|
16
21
|
default_executable:
|
17
22
|
dependencies:
|
18
23
|
- !ruby/object:Gem::Dependency
|
@@ -23,6 +28,9 @@ dependencies:
|
|
23
28
|
requirements:
|
24
29
|
- - ">="
|
25
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: 7
|
32
|
+
segments:
|
33
|
+
- 2
|
26
34
|
version: "2"
|
27
35
|
type: :runtime
|
28
36
|
version_requirements: *id001
|
@@ -34,6 +42,9 @@ dependencies:
|
|
34
42
|
requirements:
|
35
43
|
- - ">="
|
36
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 7
|
46
|
+
segments:
|
47
|
+
- 2
|
37
48
|
version: "2"
|
38
49
|
type: :runtime
|
39
50
|
version_requirements: *id002
|
@@ -45,6 +56,9 @@ dependencies:
|
|
45
56
|
requirements:
|
46
57
|
- - ">="
|
47
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 5
|
60
|
+
segments:
|
61
|
+
- 3
|
48
62
|
version: "3"
|
49
63
|
type: :development
|
50
64
|
version_requirements: *id003
|
@@ -56,6 +70,9 @@ dependencies:
|
|
56
70
|
requirements:
|
57
71
|
- - ">="
|
58
72
|
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
59
76
|
version: "0"
|
60
77
|
type: :development
|
61
78
|
version_requirements: *id004
|
@@ -67,6 +84,9 @@ dependencies:
|
|
67
84
|
requirements:
|
68
85
|
- - ">="
|
69
86
|
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
70
90
|
version: "0"
|
71
91
|
type: :development
|
72
92
|
version_requirements: *id005
|
@@ -109,17 +129,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
129
|
requirements:
|
110
130
|
- - ">="
|
111
131
|
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
112
135
|
version: "0"
|
113
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
137
|
none: false
|
115
138
|
requirements:
|
116
139
|
- - ">="
|
117
140
|
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
142
|
+
segments:
|
143
|
+
- 0
|
118
144
|
version: "0"
|
119
145
|
requirements: []
|
120
146
|
|
121
147
|
rubyforge_project:
|
122
|
-
rubygems_version: 1.6.
|
148
|
+
rubygems_version: 1.6.1
|
123
149
|
signing_key:
|
124
150
|
specification_version: 3
|
125
151
|
summary: A bunch of useful Rake tasks for managing your Heroku apps
|