Add a script to spawn a local testing database
This commit is contained in:
parent
8cfb1b01ab
commit
1ef798e399
@ -44,6 +44,8 @@ $ docker-compose up -d
|
|||||||
* Create and fill in a `pluralkit.conf` file in the same directory as `docker-compose.yml`
|
* Create and fill in a `pluralkit.conf` file in the same directory as `docker-compose.yml`
|
||||||
* Run the bot: `dotnet run --project PluralKit.Bot`
|
* Run the bot: `dotnet run --project PluralKit.Bot`
|
||||||
|
|
||||||
|
(tip: use `scripts/run-test-db.sh` to run a temporary PostgreSQL database on your local system. Requires Docker.)
|
||||||
|
|
||||||
# Building the docs
|
# Building the docs
|
||||||
The website and documentation are automatically built by GitHub Pages when pushed to the `master` branch. They use [Jekyll 3](https://jekyllrb.com), which requires [Ruby](https://www.ruby-lang.org) and [Bundler](https://bundler.io/).
|
The website and documentation are automatically built by GitHub Pages when pushed to the `master` branch. They use [Jekyll 3](https://jekyllrb.com), which requires [Ruby](https://www.ruby-lang.org) and [Bundler](https://bundler.io/).
|
||||||
|
|
||||||
|
5
scripts/run-test-db.sh
Executable file
5
scripts/run-test-db.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Runs a local database in the background listening on port 5432, deleting itself once stopped
|
||||||
|
# Requires Docker. May need sudo if your user isn't in the `docker` group.
|
||||||
|
docker run --rm --detach --publish 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:alpine
|
Loading…
Reference in New Issue
Block a user