Skip to content

Commit

Permalink
feat: remove default value for --db parameter (#348)
Browse files Browse the repository at this point in the history
* feat: remove default value for --db parameter

* fix ci

* wrangle yaml
  • Loading branch information
iand authored Jan 12, 2021
1 parent 53c84ac commit 7a09fbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7a09fbf

Please sign in to comment.