mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Update README.md (#137)
This commit is contained in:
parent
079523c25f
commit
5e128ae6a6
2 changed files with 5 additions and 5 deletions
|
|
@ -37,16 +37,16 @@ $ brew install dbmate
|
|||
Download the binary directly:
|
||||
|
||||
```sh
|
||||
$ sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.8.0/dbmate-linux-amd64
|
||||
$ sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
|
||||
$ sudo chmod +x /usr/local/bin/dbmate
|
||||
```
|
||||
|
||||
**Docker**
|
||||
|
||||
You can run dbmate using the official docker image:
|
||||
You can run dbmate using the official docker image (remember to set `--network=host` or see [this comment](https://github.com/amacneil/dbmate/issues/128#issuecomment-615924611) for more tips on using dbmate with docker networking):
|
||||
|
||||
```sh
|
||||
$ docker run --rm -it amacneil/dbmate --help
|
||||
$ docker run --rm --network=host -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:
|
||||
|
|
@ -61,7 +61,7 @@ To use dbmate on Heroku, the easiest method is to store the linux binary in your
|
|||
|
||||
```sh
|
||||
$ mkdir -p bin
|
||||
$ curl -fsSL -o bin/dbmate-heroku https://github.com/amacneil/dbmate/releases/download/v1.8.0/dbmate-linux-amd64
|
||||
$ curl -fsSL -o bin/dbmate-heroku https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
|
||||
$ chmod +x bin/dbmate-heroku
|
||||
$ git add bin/dbmate-heroku
|
||||
$ git commit -m "Add dbmate binary"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
The following steps should be followed to publish a new version of dbmate (requires write access to this repository).
|
||||
|
||||
1. Update [version.go](/pkg/dbmate/version.go) and [README.md](/README.md) with new version number ([example PR](https://github.com/amacneil/dbmate/pull/79/files))
|
||||
1. Update [version.go](/pkg/dbmate/version.go) with new version number ([example PR](https://github.com/amacneil/dbmate/pull/79/files))
|
||||
2. Create new release on GitHub project [releases page](https://github.com/amacneil/dbmate/releases)
|
||||
3. Travis CI will automatically publish release binaries to GitHub
|
||||
4. Create PR to update Homebrew package by running the following command:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue