-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.08 KB
/
Makefile
File metadata and controls
48 lines (37 loc) · 1.08 KB
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
41
42
43
44
45
46
47
48
#!make
restart: stop | build | run
setup: update-submodules | reinitialize-git
build:
@echo "+\n++ Building images ...\n+"
@docker-compose build --parallel
run:
@echo "+\n++ Running client and server ...\n+"
@docker-compose up -d
run-server:
@echo "+\n++ Running server ...\n+"
@docker-compose up -d server
stop:
@echo "+\n++ Stopping client and server ...\n+"
@docker-compose down -t 2
db-seed:
@echo "+\n++ Seeding database ...\n+"
@docker-compose run server python manage.py seed-db
server-test:
@echo "+\n++ Running server unit tests ...\n+"
@docker-compose run server python manage.py test
client-test:
@echo "+\n++ Running client unit tests ...\n+"
@docker-compose run client npm test
clean:
@echo "+\n++ Removing containers, images, volumes etc...\n+"
@docker-compose rm -f -v -s
@docker volume rm -f react-python-starter_postgres-data
update-submodules:
@echo "+\n++ Updating submodules ...\n+"
@mkdir -p client && cd ./client && git submodule init && git submodule update
reinitialize-git:
@rm .gitmodules
@rm -rf .github
@rm -rf .git
@rm -rf ./client/.git
@git init