ci(e2e): use .env password for db connection
This commit is contained in:
parent
7cb54ae341
commit
cc3334438e
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import { Pool } from 'pg';
|
||||||
import { drizzle } from 'drizzle-orm/node-postgres';
|
import { drizzle } from 'drizzle-orm/node-postgres';
|
||||||
import * as schema from '../../src/server/db/schema';
|
import * as schema from '../../src/server/db/schema';
|
||||||
|
|
||||||
const connectionString = `postgresql://tipi:postgres@${process.env.SERVER_IP}:5432/tipi?connect_timeout=300`;
|
const connectionString = `postgresql://tipi:${process.env.POSTGRES_PASSWORD}@${process.env.SERVER_IP}:5432/tipi?connect_timeout=300`;
|
||||||
|
|
||||||
const pool = new Pool({
|
const pool = new Pool({
|
||||||
connectionString,
|
connectionString,
|
||||||
|
|
Loading…
Add table
Reference in a new issue