-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72b9ee8
commit d38dc34
Showing
3 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |