Name | Description | Required | Default |
---|---|---|---|
PG_URL |
PostgreSQL connection string. | ✔ | |
PORT |
Network port to bind to when listening for new connections. | ✔ | |
RUST_LOG |
Log verbosity level. See the env_logger crate documentation. |
❌ | error |
RUST_LOG_STYLE |
Whether to enable ANSI colors in the output. See the env_logger crate documentation. |
❌ | auto |
To automate common tasks, we use the Just task runner. See the documentation for more information.
# Create the `/data` folder and start the database daemon in one step.
just init
# This is equivalent to running these two tasks.
just initdb
just db
# Initialize and instantiate the template in one step.
just instantiate
# This is equivalent to running these two tasks.
just template
just create
# Connect to the database using a `psql` shell.
just shell
# Drop the instantiated database and recreate a new one from the template.
just respawn
# This is equivalent to running these two tasks.
just drop
just create
# Nuke the entire `/data` folder and reinitialize it.
just reset
# This is equivalent to running these two tasks.
just nuke
just init