File size: 507 Bytes
e131ab5
 
 
 
 
 
 
aca21a2
e131ab5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
install-node:
	./install-node.sh

build-client:
	cd frontend && npm install && npm run build && rm -rf ../static && cp -r build/ ../static/

build-dev:
	cd frontend && rm -rf node_modules && npm install && NODE_ENV=development npm run build && rm -rf ../static 2>&1 && cp -rv build/ ../static/

run-dev:
	FLASK_DEBUG=development python app.py

run-prod:
	python app.py & python gradio-app.py

run-mock:
	python app.py & python gradio-mock-app.py

stop-server:
	killall python

all: run-prod

mock: run-mock