mirror of
https://github.com/meehow/privtracker.git
synced 2026-05-06 23:34:37 +08:00
use go install for building
This commit is contained in:
13
README.md
13
README.md
@@ -7,24 +7,17 @@ It really works like a private tracker, but can be generated with one click of a
|
||||
---
|
||||
### Build & install
|
||||
```bash
|
||||
# Clone this repository.
|
||||
$ git clone https://github.com/meehow/privtracker.git
|
||||
|
||||
# cd into the directory
|
||||
$ cd privtracker
|
||||
|
||||
# Run go build
|
||||
$ go build
|
||||
$ go install github.com/meehow/privtracker@latest
|
||||
```
|
||||
### Usage
|
||||
```bash
|
||||
# Runs on port 1337 by default.
|
||||
$ ./privtracker
|
||||
$ ~/go/bin/privtracker
|
||||
```
|
||||
|
||||
```bash
|
||||
# Set PORT to 443 if you want to enable automatic TLS handling
|
||||
$ PORT=443 ./privtracker
|
||||
$ PORT=443 ~/go/bin/privtracker
|
||||
```
|
||||
|
||||
### Example Systemd service
|
||||
|
||||
Reference in New Issue
Block a user