forked from silshack/spring2014
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
author: elliott | ||
layout: post | ||
--- | ||
|
||
Getting a local dev environment running. | ||
http://www.beatofthegeek.com/2013/04/how-to-setup-postgresql-python-flask.html | ||
|
||
|
||
heroku addons:add heroku-postgresql:dev | ||
# Note the COLOR | ||
|
||
# Fill in your color here: | ||
heroku pg:promote HEROKU_POSTGRESQL_COLOR | ||
|
||
# Find DB location: | ||
heroku pg:credentials DATABASE | ||
# Note the Connection URL at the bottom | ||
|
||
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URI","[Connection URL goes here]") | ||
|
||
# add environment variable | ||
echo 'export DATABASE_URI="[Connection URL goes here]"' > ~/.bash_profile |