Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Apr 7, 2024
1 parent 4b47b81 commit 8cd70e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,16 @@ By default, the app will connect to stage database in Neon, but you can run it l

#### How to deploy changes in the database

> [!CAUTION]
> This guide is outdated! The migration to Neon was very fast and I didn't have time to standarize the procedure.
1. Make the changes in your code, testing them with the local database.
1. Run `pnpm db:generate` to generate the migrations.
1. Run `pnpm db:push` to upload the migrations to Neon stage branch.
- Only 1 branch can be pushed to Neon at a time, if there were contents from another change they will be overridden. This is because we use the Neon free tier.
1. Run `pnpm db:push` to upload the migrations to Planetscale stage branch.
- Only 1 branch can be pushed to Planetscale at a time, if there were contents from another change they will be overridden. This is because we use the Planetscale free tier.
1. Run the GitHub's CI after the stage database is updated, by pushing a commit or running it manually.
- GitHub's CI is configured to run on stage database, so it will catch any error.
1. Right before merging the PR, go to Neon dashboard and create a deploy preview and deploy it.
1. Right before merging the PR, go to Planetscale dashboard and create a deploy preview and deploy it.
1. Merge the PR in GitHub.

#### Access to other services
Expand Down

0 comments on commit 8cd70e0

Please sign in to comment.