Skip to content

DevOps: make dev and demo environments deployments to reset & reseed DB #20

Description

@evereq
  1. For the Demo environment, will are going to have a cron task that resets DB to the initial state every night (e.g. at 00:00). The "reset" DB means the following steps:
  • drop DB schema (DROP DATABASE gauzy)
  • create DB schema again (CREATE DATABASE gauzy)
  • run yarn seed:all so it reseeds all DB with fake demo data
  1. Dev env should recreate (reset) DB on each deployment. It means the following steps:
  • drop DB schema (DROP DATABASE gauzy)
  • create DB schema again (CREATE DATABASE gauzy)
  • no need to run yarn seed or yarn seed:all because the default seed runs as part of the first API start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions