You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
352 B
16 lines
352 B
.PHONY: frontend backend reload nginx |
|
|
|
# install deps and build the React app |
|
frontend: |
|
cd frontend && npm install && npm run build |
|
|
|
# start FastAPI backend |
|
backend: |
|
uvicorn backend.app:app --reload --port 8000 |
|
|
|
# reload nginx after config or build changes |
|
nginx: |
|
sudo systemctl reload nginx |
|
|
|
# build everything and reload nginx |
|
all: frontend nginx
|
|
|