How to deploy a new mataroa instance?
- Get a linux server
- Follow the server playbook
- Update mataroa/settings
ADMINS
CANONICAL_HOST
EMAIL_HOST
andEMAIL_HOST_BROADCAST
- Adjust the deploy.sh script
- Change IP
- Enable
deploy
user to reload the uwsgi systemd service. To do this...
...add deploy
user to sudo/wheel group:
adduser deploy sudo
Then, edit sudoers with:
visudo
and add the following:
# Allow deploy user to restart apps
%deploy ALL=NOPASSWD: /usr/bin/systemctl reload mataroa.uwsgi
Rumours are the only way to see the results is to reboot :/
But once you do (!) — then:
sudo -i -u deploy
sudo systemctl reload mataroa.uwsgi