-
-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Labels
Description
If the DATABASE_URL env var is defined we act like we are in production. When we are in production we wipe the db if the api restarts.
- env var DATABASE_URL should not imply production
- do not wipe db if we are in production
- factor out the seeding step into a separate file while we are at it.
Relevant code https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/blob/master/src/index.js#L94
rwieruch and ACPKrwieruch and ACPK