summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-11-15 08:30:32 -0700
committermo khan <mo@mokhan.ca>2014-11-15 08:30:32 -0700
commit75b765fa1d4c4a6cb70cbfdec6c9a796e3ff129a (patch)
treef4711cfa73f909c2b76dbc5b26e8c42abfb7e494
parent0b7b7a864445f3965243067691b09acc1475d2eb (diff)
extract stage.
-rwxr-xr-xbin/heroku-staging12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/heroku-staging b/bin/heroku-staging
index 5d7899b..0baa9a7 100755
--- a/bin/heroku-staging
+++ b/bin/heroku-staging
@@ -1,12 +1,18 @@
#!/bin/bash
-heroku config --app urkel-staging
+STAGE=urkel-staging
+
+heroku config --app $STAGE
+# TODO: find way to load from .env.staging file without checking into source control.
heroku config:set ASSET_HOST=//urkel-staging.herokuapp.com \
- APPLICATION_DOMAIN=urkel-staging.herokuapp.com --app urkel-staging \
+ APPLICATION_DOMAIN=urkel-staging.herokuapp.com --app $STAGE \
SMTP_HOST='' \
SMTP_PORT='' \
SMTP_DOMAIN='' \
SMTP_USERNAME='' \
SMTP_PASSWORD='' \
EMAIL_RECIPIENTS='' \
- --app urkel-staging
+ --app $STAGE
+
+git push staging master
+heroku run rake db:migrate --app $STAGE