https://github.com/codecrafters-io/heroku-buildpack-dbmate
A heroku buildpack to install dbmate (a command line tool to manage DB migrations)
https://github.com/codecrafters-io/heroku-buildpack-dbmate
Last synced: 9 months ago
JSON representation
A heroku buildpack to install dbmate (a command line tool to manage DB migrations)
- Host: GitHub
- URL: https://github.com/codecrafters-io/heroku-buildpack-dbmate
- Owner: codecrafters-io
- Created: 2022-02-05T18:53:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T07:07:43.000Z (over 1 year ago)
- Last Synced: 2025-06-22T01:50:19.684Z (12 months ago)
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Heroku buildpack: dbmate
=========================
This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) that
allows one to run [`dbmate`](https://github.com/amacneil/dbmate) in a dyno alongside application code.
Usage
-----
Example usage:
$ heroku buildpacks:add https://github.com/codecrafters-io/heroku-buildpack-dbmate
$ git push heroku master
...
remote: -----> dbmate app detected
remote: -----> Installing dbmate-2.21.0.... done
remote: -----> Installing profile.d script.... done
...
$ heroku run 'dbmate --version'
Running `dbmate --version` attached to terminal... up, run.3706
dbmate version 2.21.0
Testing
-------
This buildpack is tested using [heroku-buildpack-testrunner](https://github.com/heroku/heroku-buildpack-testrunner).
[Build the `heroku/buildpack-testrunner` docker image](https://github.com/heroku/heroku-buildpack-testrunner#docker-usage)
and then run this command to run tests:
```shell
docker run -it -v $(pwd):/app/buildpack:ro heroku/testrunner
```