ref: c6e4af15a5c5b8494d48b5d3122a17bc9980b963 gobin/README.md -rw-r--r-- 1.0 KiB
c6e4af15Alexey Yerin gobin-migrate: wrap migrations in transaction 6 months ago


Simple self-hosted service for sharing text snippets


  • Totally anonymous, not even IP is logged
  • Dark theme by default
  • JavaScript-free
  • Easy to deploy (not really but much easier than paste.sr.ht)


Two basic requirements are Go compiler (unless you grab built binaries) and PostgreSQL database running.


Copy config.example.toml to config.toml (or whatever you want) and edit to your liking. All fields are required.


git clone https://git.sr.ht/~yerinalexey/gobin
cd gobin

go build


./gobin-migrate up


./gobin-migrate -c /etc/whatever.toml up

Warning: TOML parser in gobin-migrate is too simple and will not handle all cases.

If something goes wrong, you can apply migrations manually by running up.sql files in subdirectories of ./migrations.




./gobin -config /etc/whatever.toml    # if you have a config file in different place

It's also a good idea to run gobin binary as a system service.