forked from TWS/kalkutago
Add static file server to rocket & SPA index redirect
This commit is contained in:
parent
f794f5c974
commit
0b57f140cb
5 changed files with 35 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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/
|
||||
Loading…
Add table
Add a link
Reference in a new issue