@@ 2,13 2,20 @@
Simple self-hosted service for sharing text snippets
Two basic requirements are Go compiler (unless you grab built binaries) and
PostgreSQL database running.
Two basic requirements are Go compiler and PostgreSQL running. As soon as
PostgreSQL is running, set `DATABASE_URI` to `postgresql://`-URI:
Set `DATABASE_URI` environment variable to `postgresql://`-URI:
Replace `USER` with your username (`postrges` is default),
`PASSWORD` with your strong and complicated password and
`DB` with database name (make sure to run `create database`).
If you want to change port on which application is running, set `PORT`
environment variable (4000 is default).
@@ 19,7 26,7 @@ environment variable to `http://` or `https://` + your domain
export PORT=80 # Note: you might need to run gobin as root
@@ 43,5 50,5 @@ files in subdirectories of `./migrations`.
It's a good idea to run `gobin` binary as a system service. Make sure to
It's also a good idea to run `gobin` binary as a system service. Make sure to
provide all environment variables.