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:
parent
7e505ad493
commit
00afd05abb
6 changed files with 42 additions and 143 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue