~yerinalexey/gobin

7042fc2c18f744f693c6a356e8bfe383d45f4102 — Alexey Yerin 10 months ago 3c6d85a
chore: reformat with tw=72
1 files changed, 8 insertions(+), 8 deletions(-)

M README.md
M README.md => README.md +8 -8
@@ 2,8 2,8 @@
Simple self-hosted service for sharing text snippets

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

## Database
Set `DATABASE_URI` environment variable to `postgresql://`-URI:


@@ 20,8 20,8 @@ Replace `USER` with your username (`postrges` is default),
If you want to change port on which application is running, set `PORT`
environment variable (4000 is default).

If your application is hosted not on localhost, you should change `BASE_URL`
environment variable to `http://` or `https://` + your domain
If your application is hosted not on localhost, you should change
`BASE_URL` environment variable to `http://` or `https://` + your domain
(e.g. `https://somesite.dev`)

```sh


@@ 42,13 42,13 @@ go build
./gobin-migrate up
```

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

## Running
```sh
./gobin
```

It's also a good idea to run `gobin` binary as a system service. Make sure to
provide all environment variables.
It's also a good idea to run `gobin` binary as a system service. Make
sure to provide all environment variables.