justinpotts / terml.io

Code for https://terml.io
0 stars 0 forks source link

Create config file to setup db URLs and Stripe API keys #4

Closed jeffw16 closed 8 years ago

jeffw16 commented 8 years ago

Issue by justinpotts Wednesday Jun 17, 2015 at 03:42 GMT Originally opened as https://github.com/justinpotts/terml.io-retired/issues/4


We need to figure out how to use some sort of logic to decide which database to use (local, stage, or prod).

I've checked to see if Flask has any url property to be used outside of a request instance, but they don't. Our best bet is to write an app config file that would be stored outside of the git directory, but referenced in setup with environment variables and such.

This is also needed for the live payment system with Stripe.