Skip to content

Instantly share code, notes, and snippets.

@wfalkwallace
Last active August 29, 2015 14:00
Show Gist options
  • Save wfalkwallace/11087826 to your computer and use it in GitHub Desktop.
Save wfalkwallace/11087826 to your computer and use it in GitHub Desktop.
vagrant error - linger
vagrant@precise32:/vagrant$ python app.py
Traceback (most recent call last):
File "app.py", line 29, in <module>
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'DATABASE_URL'
vagrant@precise32:/vagrant$
@elemonier
Copy link

database_url must not be environ var. probably from heroku settings. not sure if I have an old config with the database url but should just be the regular linger url....
I can try and find if you don't have it?

@wfalkwallace
Copy link
Author

yep - just had to set "localhost = True". good call on the heroku remnant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment