Further production updates

- add collectstatic job to docker-compose.yaml
- remove old dev script
- add a recipe for building the frontend distributable
- fix nginx location for react-router endpoints
- fix bug in tasks.py
This commit is contained in:
Matthew Northcott 2023-03-30 14:27:56 +13:00
parent 7e505ad493
commit 00afd05abb
6 changed files with 42 additions and 143 deletions

View file

@ -34,9 +34,9 @@ def generate_pdf(questionnaire_id, export_id):
else:
if not storage.exists(filename):
raise FileNotFoundError(f"There was an error creating file: {filename}")
finally:
if e.completion >= 1:
generate_zip.delay(export_id)
if e.completion >= 1:
generate_zip.delay(export_id)
@shared_task