debug: CI: switch name back to database and print URI
This commit is contained in:
parent
0a05fb945f
commit
fdf31ecfd2
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ pipeline:
|
||||||
backend:
|
backend:
|
||||||
image: rust
|
image: rust
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgres://postgres:password@librepages_librepages_postgres_database/postgres
|
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
||||||
commands:
|
commands:
|
||||||
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
|
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
|
||||||
- apt update && apt-get -y --no-install-recommends install nodejs
|
- apt update && apt-get -y --no-install-recommends install nodejs
|
||||||
|
@ -47,7 +47,7 @@ pipeline:
|
||||||
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
librepages_librepages_postgres_database:
|
database:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=password
|
||||||
|
|
|
@ -48,6 +48,7 @@ impl ConnectionOptions {
|
||||||
async fn connect(self) -> ServiceResult<Database> {
|
async fn connect(self) -> ServiceResult<Database> {
|
||||||
let pool = match self {
|
let pool = match self {
|
||||||
Self::Fresh(fresh) => {
|
Self::Fresh(fresh) => {
|
||||||
|
println!("{}", fresh.url);
|
||||||
let mut connect_options =
|
let mut connect_options =
|
||||||
sqlx::postgres::PgConnectOptions::from_str(&fresh.url).unwrap();
|
sqlx::postgres::PgConnectOptions::from_str(&fresh.url).unwrap();
|
||||||
if fresh.disable_logging {
|
if fresh.disable_logging {
|
||||||
|
|
Loading…
Add table
Reference in a new issue