Permalink
Browse files

used a different environment variable for heroku database

  • Loading branch information...
1 parent f1f552a commit c6491462efffc8d11727dabf86bc4d1b2e5913a7 @dpaola2 committed Apr 30, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +1 −1 migrations/manage.py
  3. +1 −1 models.py
View
@@ -1,7 +1,7 @@
DATABASE_NAME = bourbon
DATABASE_URL=postgresql://admin@localhost/$(DATABASE_NAME)
ACTIVATE = source bin/activate
-ENV = DATABASE_URL=$(DATABASE_URL)
+ENV = HEROKU_SHARED_POSTGRESQL_IVORY_URL=$(DATABASE_URL)
MIGRATE_PATH = migrations/manage.py
all: virtualenv install
View
@@ -3,4 +3,4 @@
import os
if __name__ == '__main__':
- main(debug='False', url=os.environ.get('DATABASE_URL'), repository='migrations')
+ main(debug='False', url=os.environ.get('HEROKU_SHARED_POSTGRESQL_IVORY_URL'), repository='migrations')
View
@@ -4,7 +4,7 @@
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship, backref
-engine = create_engine(os.environ.get('DATABASE_URL'), echo = False)
+engine = create_engine(os.environ.get('HEROKU_SHARED_POSTGRESQL_IVORY_URL'), echo = False)
Session = sessionmaker(bind=engine)
Base = declarative_base()

0 comments on commit c649146

Please sign in to comment.