mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
parent
2c83de332c
commit
259332bf21
1 changed files with 7 additions and 1 deletions
|
|
@ -46,7 +46,13 @@ $ sudo chmod +x /usr/local/bin/dbmate
|
|||
You can run dbmate using the official docker image:
|
||||
|
||||
```sh
|
||||
$ docker run --rm amacneil/dbmate --help
|
||||
$ docker run --rm -it amacneil/dbmate --help
|
||||
```
|
||||
|
||||
If you wish to create or apply migrations, you will need to use Docker's [bind mount](https://docs.docker.com/storage/bind-mounts/) feature to make your local working directory available inside the dbmate container:
|
||||
|
||||
```sh
|
||||
$ docker run --rm -it -v "$(pwd)"/db:/db amacneil/dbmate new create_users_table
|
||||
```
|
||||
|
||||
**Heroku**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue