I got some issues during migrate installation [...]
If you have some problems with local installation golang-migrate/migrate, try Docker-way of them, like this:
docker run \-v${PWD}:/migrations \--network host \
migrate/migrate \-path=/migrations/ \-database postgres://localhost:5432/database up
[...] I guess you can simplify "Docker related steps" by using docker-compose.
It's cool that you noticed this, but I did it on purpose to show the full setup for beginners... 😉 Also, I personally like to use Ansible playbooks instead of docker-compose to deploy the project to live servers (if that's what you want to roll out), but that would be too much for an already large tutorial.
Great tutorial! Like your style, "less water" )).
I got some issues during
migrateinstallation:I have go version go1.17.1 and linux/amd64 (Arch linux)
BTW I've fixed that by building it from the source.
Just thoughts... I guess you can simplify "Docker related steps" by using
docker-compose.Hi,
Thanks for reply!
If you have some problems with local installation
golang-migrate/migrate, try Docker-way of them, like this:It's cool that you noticed this, but I did it on purpose to show the full setup for beginners... 😉 Also, I personally like to use Ansible playbooks instead of docker-compose to deploy the project to live servers (if that's what you want to roll out), but that would be too much for an already large tutorial.
Thank you Vic! Gonna try that.