TODO: Create a dev setup guide for local testing #119

Closed
opened 2022-06-20 09:42:00 +00:00 by glyph · 1 comment
Owner

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

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`
glyph added the
peach-web
documentation
labels 2022-06-20 09:42:00 +00:00
Author
Owner

Addressed in #122.

Addressed in https://git.coopcloud.tech/PeachCloud/peach-workspace/pulls/122.
glyph closed this issue 2022-06-28 10:38:04 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PeachCloud/peach-workspace#119
No description provided.