Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 810 Bytes

deployment.md

File metadata and controls

41 lines (30 loc) · 810 Bytes

Deployment

How to deploy a new mataroa instance?

  1. Get a linux server
  2. Follow the server playbook
  3. Update mataroa/settings
    • ADMINS
    • CANONICAL_HOST
    • EMAIL_HOST and EMAIL_HOST_BROADCAST
  4. Adjust the deploy.sh script
    • Change IP
  5. 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