mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Add TEST_DATABASE_URL env, change database defaults
This commit is contained in:
parent
a888f43288
commit
f76d0af16d
1 changed files with 5 additions and 1 deletions
|
|
@ -82,7 +82,11 @@ class Conf {
|
|||
* ```
|
||||
*/
|
||||
static get databaseUrl(): string {
|
||||
return Deno.env.get('DATABASE_URL') ?? 'pglite://data/pgdata';
|
||||
return Deno.env.get('DATABASE_URL') ?? 'file://data/pgdata';
|
||||
}
|
||||
/** Database to use in tests. */
|
||||
static get testDatabaseUrl(): string {
|
||||
return Deno.env.get('TEST_DATABASE_URL') ?? 'memory://';
|
||||
}
|
||||
static db = {
|
||||
get url(): url.UrlWithStringQuery {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue