Open morenoh149 opened 5 years ago
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.
Relevant code https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/blob/master/src/index.js#L94
Related https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/pull/54
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.
Relevant code https://github.com/the-road-to-graphql/fullstack-apollo-express-postgresql-boilerplate/blob/master/src/index.js#L94