Since the changes to the environment variable-based config system, along with the move away from --user systemd services, there are a few steps required to test PeachPub on a local computer.
GO_SBOT_DATADIR must be set (eg. export GO_SBOT_DATADIR="/home/glyph/.ssb-go")
A sudoers file with NOPASSWD rules must be created for go-sbot (eg. /etc/sudoers.d/go-sbot):
# Control go-sbot service without sudo password
glyph ALL=(ALL) NOPASSWD: /bin/systemctl start go-sbot.service, /bin/systemctl restart go-sbot.service, /bin/systemctl stop go-sbot.service, /bin/systemctl enable go-sbot.service, /bin/systemctl disable go-sbot.service
And a go-sbot.service file must be created (eg. /etc/systemd/system/go-sbot.service):
Since the changes to the environment variable-based config system, along with the move away from `--user` systemd services, there are a few steps required to test PeachPub on a local computer.
`GO_SBOT_DATADIR` must be set (eg. `export GO_SBOT_DATADIR="/home/glyph/.ssb-go"`)
A `sudoers` file with `NOPASSWD` rules must be created for `go-sbot` (eg. `/etc/sudoers.d/go-sbot`):
```
# Control go-sbot service without sudo password
glyph ALL=(ALL) NOPASSWD: /bin/systemctl start go-sbot.service, /bin/systemctl restart go-sbot.service, /bin/systemctl stop go-sbot.service, /bin/systemctl enable go-sbot.service, /bin/systemctl disable go-sbot.service
```
And a `go-sbot.service` file must be created (eg. `/etc/systemd/system/go-sbot.service`):
```
[Unit]
Description=GoSSB server.
[Service]
User=glyph
ExecStart=/usr/bin/go-sbot
Restart=always
[Install]
WantedBy=multi-user.target
```
Then the config must be reloaded:
`sudo systemctl daemon-reload`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Since the changes to the environment variable-based config system, along with the move away from
--usersystemd services, there are a few steps required to test PeachPub on a local computer.GO_SBOT_DATADIRmust be set (eg.export GO_SBOT_DATADIR="/home/glyph/.ssb-go")A
sudoersfile withNOPASSWDrules must be created forgo-sbot(eg./etc/sudoers.d/go-sbot):And a
go-sbot.servicefile must be created (eg./etc/systemd/system/go-sbot.service):Then the config must be reloaded:
sudo systemctl daemon-reloadAddressed in #122.