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

Populate the production database with valid resources #47

Closed
amcewen opened this issue Nov 2, 2021 · 2 comments
Closed

Populate the production database with valid resources #47

amcewen opened this issue Nov 2, 2021 · 2 comments
Labels
deployment Issues about the production server

Comments

@amcewen
Copy link
Member

amcewen commented Nov 2, 2021

Now that #16 and #17 are done we've got a basic site running. When you try to select a resource it returns an error, which (I think) is because there's nothing in the production database.

We should work out how we'll populate it, and then put the right info into it.

@amcewen amcewen added the deployment Issues about the production server label Nov 2, 2021
@amcewen
Copy link
Member Author

amcewen commented Dec 7, 2021

Once we know how changes to the database are managed, we should make sure the Github Action created in #48 runs any relevant updates to the database when new versions are deployed.

@amcewen
Copy link
Member Author

amcewen commented Jan 4, 2022

The database seeds already set up for the production environment (a copy of the development ones) seem a reasonable start. So on the production server I ran docker-compose exec api npx knex seed:run --env production which has populated it with the initial data 🎉

We'll need a better system to manage any updates in future, but this is okay for now. #20 might give us an answer for the ongoing changes... and I've spun the running the database migrations during deploy out as #56

@amcewen amcewen closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Issues about the production server
Projects
None yet
Development

No branches or pull requests

1 participant