Skip to content

Normalize the database initialization approach #159

Description

@morganney

Currently when using local development or a potential docker compose production deploy on an EC2 instance, for example, the database is initialized from the packages/api/initdb.d scripts. However, deployment to AWS via copilot does not run these initialization scripts because an Aurora Postgres cluster is used, so in that case node packages/api/dist/initDb.js is used.

Find a way to have one location for the initialization logic, so that I don't have to manage keeping the two in sync. Easy thought is to have psql installed on the api container and then put it all in a shell script to execute, but that would add some bloat to the image size, and other tradeoffs I'm sure.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dbRelated to database changes or work

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions