@ webdev leads, this one is for you.
The VPA (Patrik) has asked that we set up exam_director@mathsoc.uwaterloo.ca as an admin on the site, so that they're able to update the exam bank.
Adding the email shouldn't be too hard to do, but we also need to update the server to reflect our changes.
Steps:
- Update the list of admin users to include
exam_director@mathsoc.uwaterloo.ca - it's in a config file somewhere. I believe if you ctrl+f @mathsoc.uwaterloo.ca, it should come up.
- Commit the change to the repo
- Restart the mathsoc website server
- SSH into
services.mathsoc.uwaterloo.ca. You'll need to set up your SSH key on Authman - there's steps in the MathSoc repos at gitlab.uwaterloo.ca. You'll also need to be either on-campus or on the campus VPN.
- Once you're in, run
sudo -i to authenticate. You won't be able to see any files without doing this.
- Redeploy the website using the
deploy.sh script in /root.
- The website is being run through a service called
mathsoc-website. You likely shouldn't need to touch it directly though - there's a deploy.sh script in the /root directory that you should be able to run, which will pull the new changes and restart the website. There's another one at /root/deploy iirc - either should work?
- You can use
journalctl commands to look into the mathsoc-website service and view logs, in the event that things really stop working.
Testing:
To test that the changes have deployed, you can try adding/removing webdev@mathsoc.uwaterloo.ca to the admin list manually. I believe you can go to /srv to find the website files; once there, navigate to the admins config file and add/remove the webdev email, then redeploy.
Alternatively, feel free to reach out to the VPA and coordinate testing with the exam directors!
Let me know if you get stuck with configuration or testing at any step of this - it's very possible I've forgotten to outline a step, or neglected to add permissions everywhere necessary.
@ webdev leads, this one is for you.
The VPA (Patrik) has asked that we set up
exam_director@mathsoc.uwaterloo.caas an admin on the site, so that they're able to update the exam bank.Adding the email shouldn't be too hard to do, but we also need to update the server to reflect our changes.
Steps:
exam_director@mathsoc.uwaterloo.ca- it's in a config file somewhere. I believe if you ctrl+f@mathsoc.uwaterloo.ca, it should come up.services.mathsoc.uwaterloo.ca. You'll need to set up your SSH key on Authman - there's steps in the MathSoc repos atgitlab.uwaterloo.ca. You'll also need to be either on-campus or on the campus VPN.sudo -ito authenticate. You won't be able to see any files without doing this.deploy.shscript in/root.mathsoc-website. You likely shouldn't need to touch it directly though - there's adeploy.shscript in the/rootdirectory that you should be able to run, which will pull the new changes and restart the website. There's another one at/root/deployiirc - either should work?journalctlcommands to look into themathsoc-websiteservice and view logs, in the event that things really stop working.Testing:
To test that the changes have deployed, you can try adding/removing
webdev@mathsoc.uwaterloo.cato the admin list manually. I believe you can go to/srvto find the website files; once there, navigate to the admins config file and add/remove the webdev email, then redeploy.Alternatively, feel free to reach out to the VPA and coordinate testing with the exam directors!
Let me know if you get stuck with configuration or testing at any step of this - it's very possible I've forgotten to outline a step, or neglected to add permissions everywhere necessary.