Provisions the database a dev .env names and unexpires the postgres account #128

Merged
miko merged 1 commit from fix/setup-dev-provisioning into main 2026-11-03 06:53:57 +00:00
Owner

setup.sh --build-dev now provisions local PostgreSQL for the DATABASE_URL a checkout .env already carries: it parses the URL, creates or updates the named role with the URL password, and creates the named database, leaving the .env file unchanged. A DATABASE_URL on another machine is left alone, with a note saying so. A local URL the script cannot take apart, or one without a password, stops the script with a message naming the problem instead of provisioning the wrong thing.

The script also clears the postgres account expiry before its su postgres calls (dev provisioning, the production database step, and the memory tuning step), so the expired postgres account the Arch package creates no longer stops su.

setup.sh --build-dev now provisions local PostgreSQL for the DATABASE_URL a checkout .env already carries: it parses the URL, creates or updates the named role with the URL password, and creates the named database, leaving the .env file unchanged. A DATABASE_URL on another machine is left alone, with a note saying so. A local URL the script cannot take apart, or one without a password, stops the script with a message naming the problem instead of provisioning the wrong thing. The script also clears the postgres account expiry before its su postgres calls (dev provisioning, the production database step, and the memory tuning step), so the expired postgres account the Arch package creates no longer stops su.
Provisions the database a dev .env names and unexpires the postgres account
All checks were successful
github/analysis Analysis gate on GitHub runners
github/test Test gate on GitHub runners
github/core-only Core-only gate on GitHub runners
github/race Race gate on GitHub runners
c4ca794d2c
miko merged commit 3732201b47 into main 2026-11-03 06:53:57 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
EveSynapse/evesynapse!128
No description provided.