kylej1994 / graffiti

2 stars 0 forks source link

Environment variable for local db #191

Closed ronovan closed 7 years ago

ronovan commented 7 years ago

Before running tests/local server, to point at the local db run export LOCAL=True on the command line so that it connects to a local database instead of the production one.

ronovan commented 7 years ago

Addresses issue #180

ronovan commented 7 years ago

Hence, no way for any of us to clear the prod server to be cleared by running python __init__.py.

This is true because clear database calls are only called if the export LOCAL=True command was run, and if this command was run then the server would be connect to a local database, not the production one.

kathleen-lu commented 7 years ago

thanks ron!!!!!

ronovan commented 7 years ago

Thanks, changed it so the default one it points to is the local db

ronovan commented 7 years ago

tested locally and it works! merging