heroku_rake_deploy 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -15
- data/lib/heroku_rake_deploy/version.rb +1 -1
- data/lib/tasks/deploy.rake +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22faf2a47cb101bbc7ad231eb0bf5d10a041976d
|
4
|
+
data.tar.gz: fc8b755edd9cd1785a98efd621642252bed4045e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da088ae5ce9eea3e81035ff6a702e9904d6ec1d93eff1062b03bb45d40fd37ed364f00c19089b20e5001da31fb0f9136c2d05ab26ff6d0ad8c1e8f9e0f8a2b44
|
7
|
+
data.tar.gz: fdaa7edb8bf2ffbeb4d70867fe7dc1d281a79de8faa17aa51799307bf70934a8333ca0c2d756c9d42ebeba16f94ef591cd6402fdc60ba57203637f7d3847104b
|
data/README.md
CHANGED
@@ -1,22 +1,13 @@
|
|
1
1
|
# HerokuRakeDeploy
|
2
2
|
|
3
|
-
|
3
|
+
Provides deploy and db restore tasks for your app
|
4
4
|
|
5
|
-
|
6
|
-
* db restore (pull down your heroku database and `psql < tmp/latest.db`)
|
7
|
-
* deploys (push to heroku remotes)
|
8
|
-
|
9
|
-
These tasks all assume your heroku application names are of the format `"#{Rails.application.class.parent_name.underscore.gsub('_','-')}-#{environment}"`, where environment is one of staging, production. Setting up an app includes the following free Heroku addons:
|
10
|
-
|
11
|
-
*heroku-postgresql:hobby-dev
|
12
|
-
*newrelic:wayne
|
13
|
-
*papertrail:choklad
|
14
|
-
*rediscloud:30
|
15
|
-
*scheduler:standard
|
16
|
-
*sendgrid:starter
|
17
|
-
|
18
|
-
App name configuration flags and more detailed documentation will come in a later version.
|
5
|
+
Use the following environmental variables to control the heroku app name to be deployed/restored from:
|
19
6
|
|
7
|
+
```
|
8
|
+
HEROKU_APPNAME_PRODUCTION
|
9
|
+
HEROKU_APPNAME_STAGING
|
10
|
+
```
|
20
11
|
|
21
12
|
## Installation
|
22
13
|
|
data/lib/tasks/deploy.rake
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
def app_name_from_environment(env)
|
2
2
|
case env.downcase
|
3
3
|
when "production"
|
4
|
-
"#{Rails.application.class.parent_name.underscore.gsub('_','-')}-production"
|
4
|
+
ENV['HEROKU_APPNAME_PRODUCTION'] || "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-production"
|
5
5
|
when "staging"
|
6
|
-
"#{Rails.application.class.parent_name.underscore.gsub('_','-')}-staging"
|
6
|
+
ENV['HEROKU_APPNAME_STAGING'] || "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-staging"
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|