From 7a09fbf5dbbd007a149f0913f1f885b20d34394b Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Tue, 12 Jan 2021 13:24:26 +0000 Subject: [PATCH] feat: remove default value for --db parameter (#348) * feat: remove default value for --db parameter * fix ci * wrangle yaml --- .circleci/config.yml | 6 +++++- main.go | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f8e26e57..8ab454317 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,7 +61,11 @@ jobs: - run: name: waiting for db command: dockerize -wait tcp://localhost:5432 -timeout 1m - - run: ./visor migrate --latest + - run: + name: installing schema + command: ./visor migrate --latest + environment: + LOTUS_DB: postgres://postgres:password@localhost:5432/postgres?sslmode=disable - run: command: | make test-coverage diff --git a/main.go b/main.go index 48dd735a7..681e2ed0c 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,8 @@ func main() { &cli.StringFlag{ Name: "db", EnvVars: []string{"LOTUS_DB"}, - Value: "postgres://postgres:password@localhost:5432/postgres?sslmode=disable", + Value: "", + Usage: "A connection string for the postgres database, for example postgres://postgres:password@localhost:5432/postgres", }, &cli.IntFlag{ Name: "db-pool-size",