Skip to content

Commit

Permalink
docs: add using with Heroku Postgres recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin authored Oct 17, 2021
1 parent 246c31d commit d4d101c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,3 +735,25 @@ DATABASE_URL=postgres://postgres@localhost/db cargo bench
```

An HTML report displaying the results of the benchmark will be generated under `target/criterion/report/index.html`

## Recipes

### Using with Heroku Postgres

You can use Martin with [Managed PostgreSQL from Heroku](https://www.heroku.com/postgres) with PostGIS extension

```
heroku pg:psql -a APP_NAME -c 'create extension postgis'
```
In order to trust the Heroku certificate, you can disable certificate validation with either `DANGER_ACCEPT_INVALID_CERTS` environment variable
```
DATABASE_URL=$(heroku config:get DATABASE_URL -a APP_NAME) DANGER_ACCEPT_INVALID_CERTS=true martin
```
or `--danger-accept-invalid-certs` command-line argument
```
martin --danger-accept-invalid-certs $(heroku config:get DATABASE_URL -a APP_NAME)
```

0 comments on commit d4d101c

Please sign in to comment.