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",