-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 697 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 697 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SHELL:=/bin/bash
.PHONY: client server install freeze
client:
pushd client && npm run dev && popd
server:
pushd server && \
source env/bin/activate && \
python -m flask --app app --debug run -h localhost -p 8080 && \
popd
docker-build:
pushd server && \
docker build -t midtermr-server . && \
popd
docker-run:
docker run midtermr-server
client-deploy:
pushd client && \
npm run deploy && \
popd
server-deploy:
pushd server && \
gcloud builds submit --config cloudbuild.yaml . && \
popd
deactivate:
deactivate
install:
pushd client && npm i && popd \
pushd server && pip install -r requirements.txt && popd
freeze:
pushd server && pip freeze > requirements.txt && popd