1
0
Fork 0
forked from TWS/kalkutago

Add static file server to rocket & SPA index redirect

This commit is contained in:
D. Scott Boggs 2023-06-11 08:56:20 -04:00
parent f794f5c974
commit 0b57f140cb
5 changed files with 35 additions and 0 deletions

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
all: start-server
client/dist/index.html:
cd client; yarn && yarn build
build-client: client/dist/index.html
server/public/: client/dist/index.html
rsync -a client/dist/ server/public/
start-server: server/public/
docker compose up --build -d
clean:
docker compose down
rm -r server/public/ client/dist/