Skip to content

Commit

Permalink
add draft simplehack exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
eah13 committed Feb 19, 2014
1 parent f88b531 commit 6287c05
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions _drafts/2014-02-26-simpledev.md
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

0 comments on commit 6287c05

Please sign in to comment.