Skip to content

Commit

Permalink
Replace sqitch.conf with a template with customizable database URIs
Browse files Browse the repository at this point in the history
Databases are no longer directly accessible, and each environment may have connections to ID3C configured differently, so replacing hard coded URIs with placeholders. `sqitch.template.conf` should be copied to `sqitch.conf` and the database connection URIs should updated in that file prior to running sqitch commands.
  • Loading branch information
davereinhart committed Aug 14, 2023
1 parent 68b0ec1 commit fdaa5da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
!/Pipfile.lock
!/pytest.ini
!/setup.py
!/sqitch.conf
!/sqitch.template.conf
!/wsgi.py

# and these directories
Expand Down
6 changes: 3 additions & 3 deletions sqitch.conf → sqitch.template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
target = dev

[target "dev"]
uri = db:pg:seattleflu
uri = db:pg://<USER>@<HOST>:<PORT>/seattleflu

[target "testing"]
uri = db:pg://testing.db.seattleflu.org/testing
uri = db:pg://<USER>@<HOST>:<PORT>/testing

[target "production"]
uri = db:pg://production.db.seattleflu.org/production
uri = db:pg://<USER>@<HOST>:<PORT>/production

0 comments on commit fdaa5da

Please sign in to comment.