Browse files

added heroku_env.sh

A simple shell script to set up your
MObtvse env variables for heroku and push them.

You will need to change the export lines to match your settings
  • Loading branch information...
1 parent caa98c3 commit 4fb8ede5de4aefe2083fcf2a22a5edd91b97b23a @masukomi committed May 14, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 script/heroku_env.sh
View
15 script/heroku_env.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+export MOBTVSE_LOGIN=my_admin_username
+export MOBTVSE_PASSWORD=my_admin_password
+export MONGOID_HOST=domain.name.of.mongoid.host
+export MONGOID_PORT=29317
+export MONGOID_DATABASE=mongodb_database_name
+export MONGOID_USERNAME=mongodb_database_username
+export MONGOID_PASSWORD=mongodb_database_password
+
+heroku config:add MOBTVSE_LOGIN=$MOBTVSE_LOGIN MOBTVSE_PASSWORD=$MOBTVSE_PASSWORD \
+MONGOID_HOST=$MONGOID_HOST MONGOID_PORT=$MONGOID_PORT \
+MONGOID_DATABASE=$MONGOID_DATABASE \
+MONGOID_USERNAME=$MONGOID_USERNAME MONGOID_PASSWORD=$MONGOID_PASSWORD
+

0 comments on commit 4fb8ede

Please sign in to comment.