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

@ -10,8 +10,8 @@ export GID
frontend/node_modules:
docker run --rm -v ${PWD}/frontend:/app -w /app -u ${UID}:${GID} node:16-bullseye npm i
backend/right_tree/staticfiles:
docker run --rm -v ${PWD}/backend:/app -w /app -u ${UID}:${GID} right-tree python manage.py collectstatic --noinput
frontend/build: frontend/node_modules
docker run --rm -v ${PWD}/frontend:/app -w /app -u ${UID}:${GID} node:16-bullsye npm build
ingest:
docker-compose up -d backend postgres