Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not wipe database in production #55

Open
morenoh149 opened this issue Feb 28, 2019 · 1 comment
Open

Do not wipe database in production #55

morenoh149 opened this issue Feb 28, 2019 · 1 comment

Comments

@morenoh149
Copy link
Contributor

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.

  1. env var DATABASE_URL should not imply production
  2. do not wipe db if we are in production
  3. 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
Copy link
Member

Related #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants