Skip to content

Commit

Permalink
docs: added deployment docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowHatpro committed Sep 22, 2024
1 parent 72b9ee8 commit d38dc34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Rename this file to .env for development, DATABASE_URL will be needed by sqlx to run cargo test
RUN_MODE=development
DATABASE_URL=postgres://musicbrainz:musicbrainz@localhost:5432/musicbrainz_db
RUN_MODE=development
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ For understanding how the project is structured, check [here](docs/ARCHITECTURE.

Refer to [Maintenance guide](docs/MAINTENANCE.md) for guidelines and instructions for maintaining the project.

## Deployment
Checkout [Deployment Guidelines](docs/DEPLOYMENT.md) for deployment related information.

4 changes: 4 additions & 0 deletions docs/DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# DEPLOYMENT GUIDELINES
- All the production configs need to be added in `config/production.toml` (See `config/production.example.toml`).
- One can override all the default configs present in `config/default.toml` by adding them directly in `config/production.toml`.
- The project relies heavily on [LISTEN/NOTIFY](https://www.postgresql.org/docs/current/sql-notify.html) and [prepared statements](https://docs.rs/sqlx/latest/sqlx/fn.query.html) to be working. Unfortunately, these features do not work with PgBouncer + Transaction pooling [[here](https://github.com/pgbouncer/pgbouncer/issues/655)]. Therefore, we cannot run the app with PgBouncer.

0 comments on commit d38dc34

Please sign in to comment.