Skip to content

Do not wipe database in productionΒ #55

@morenoh149

Description

@morenoh149

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions