foundersandcoders / sail-back

Membership management for Friends of Chichester Harbour
MIT License
6 stars 1 forks source link

prevent dev tampering with live db #516

Closed jay-meister closed 7 years ago

jay-meister commented 7 years ago

Accidentally running app with live dp in development mode will clear the live db.

Some changes to the Dev Config file could prevent this from happening.

jay-meister commented 7 years ago

As it stands, the app won't allow the dev to run locally with a DB with 'heroku' in its name.

Additionally I have added the MIGRATE env variable (set to drop or safe(default)) depending on whether we want to drop the DB or not. This speeds up dev time as running all mock entries each time app builds is very time consuming.

Closing as this is a technical task.