@@ -21,10 +21,11 @@ It's not included in the repo as it contains personally identifiable data.
2121
2222### File Server
2323
24- If using this on a machine serving multiple sites,
25- you'll need to add the configuration file to your existing Nginx setup.
24+ If using this on a machine serving multiple sites,
25+ you'll need to add the configuration file to your existing Nginx setup.
2626Assign ownership of the directory to the ` physics-workload-staff ` group and add ` nginx ` to it:
27- ``` bash
27+
28+ ``` bash
2829$ sudo usermod -a -G physics-workload-staff nginx
2930$ sudo chgrp -R voidorchestra-staff /var/www/physics-workload
3031$ sudo chmod -R g+rw /var/www/physics-workload
@@ -33,26 +34,29 @@ $ sudo chmod -R g+rw /var/www/physics-workload
3334Then, depending on your Linux distribution:
3435
3536#### Debian/Ubuntu
37+
3638Copy or link ` nginx/physics-workload.conf ` to your ` /etc/nginx/sites-enabled/ ` directory, then restart Nginx:
39+
3740``` bash
3841$ ln -s /var/www/physics-workload/nginx/physics-workload.conf /etc/nginx/sites-enabled/
3942$ sudo systemctl reload nginx
4043$ sudo systemctl restart nginx
4144```
4245
4346#### Fedora/RHEL
47+
4448Copy ` nginx/physics-workload.conf ` file to your ` /etc/nginx/conf.d ` directory.
4549Then, flag the log directory as a log directory under SELinux,
4650and the output directory as as HTML content directory too:
47- ``` bash
51+
52+ ``` bash
4853$ sudo cp /var/www/voidorchestra/nginx/physics-workload.conf /etc/nginx/conf.d/
4954$ sudo semanage fcontext -a -t httpd_sys_content_t " /var/www/physics-workload/staticfiles(/.*)?"
5055$ sudo restorecon -R -v /var/www/physics-workload/staticfiles
5156$ sudo semanage fcontext -a -t httpd_log_t " /var/www/physics-workload/logs(/.*)?"
5257$ sudo restorecon -R -v /var/www/physics-workload/logs/
5358```
5459
55-
5660## Running
5761
5862The tool is run using ` docker compose ` . Generally, it's best to do this in a ` screen ` session.
@@ -65,26 +69,26 @@ sudo docker compose up web
6569
6670### Initialising
6771
68- If this is the first time the tool is being run, import the ` .csv ` data:
72+ If this is the first time the tool is being run, import the ` .xlsx ` data:
6973
7074``` bash
7175sudo docker exec -it physics-workload-django /bin/bash
72- make clean
73- make data
76+ make all
7477```
7578
7679Then, log into the website to link your user account to the site.
7780The command ` python physics_workload/manage.py makestaff <account> ` will then make the user associated with the 365 account ` <account> ` site staff;
78- e.g.
81+ e.g.
82+
7983``` bash
8084python physics_workload/manage.py makestaff swm1r18
8185```
8286
8387### Manual Tweaks
8488
8589The output of ` make data ` should list the Tasks, Staff and Units that weren't able to be automatically imported.
86- You should then get a file ` failed_assignments.csv ` out;
87- this is the lines from the "Staff Tasks" sheet of the Excel file that failed to import.
90+ You should then get a file ` failed_assignments.csv ` out;
91+ this is the lines from the "Staff Tasks" sheet of the Excel file that failed to import.
8892
8993## Updating
9094
@@ -97,8 +101,6 @@ sudo docker compose build --no-cache
97101sudo docker compose up web
98102```
99103
100-
101-
102104# Extra
103105
104106> [ !NOTE]
0 commit comments