Skip to content

Commit

Permalink
Add a bash-script which creates heroku instances
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVartanov committed Feb 7, 2016
1 parent 3e924fa commit 312bab3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 0 additions & 12 deletions TODO
@@ -1,12 +0,0 @@
merb_activerecord, make it do ActiveRecord::Base.establish_connection(:production)
or

ActiveRecord::Base.establish_connection(
"adapter" => "sqlite3",
"database" => "path/to/dbfile"
)
Or a URL:

ActiveRecord::Base.establish_connection(
"postgres://myuser:mypass@localhost/somedatabase"
)
13 changes: 13 additions & 0 deletions create-heroku-instance
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# TZ database: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

set -e
set -x

heroku apps:create $1 --region eu --remote $1
heroku config:set MERB_ENV=production RACK_ENV=production TZ="$2" -r $1
git push $1 master
heroku run rake db:migrate -r $1
heroku restart -r $1
heroku open -r $1

0 comments on commit 312bab3

Please sign in to comment.