-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
41 lines (31 loc) · 851 Bytes
/
Makefile
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
build-server-image:
docker build -t tanvirtin/tinchat .
run-server-container:
docker run -d -t -p 8000:8000 tanvirtin/tinchat
create-web-client-build:
cp -r .env ./web-client/.env
rm -rf server/public
rm -rf web-client/build
echo 'Removed old folders'
cd ./web-client/ && yarn build production
mv web-client/build server/public
echo 'Client build created and moved'
echo 'DONE'
docker-up:
docker-compose up -d
docker-down:
docker-compose down
delete-database-entries:
. script/delete_database_entries.sh
delete-es-indices:
. script/delete_es_indices.sh
breakdown:
$(MAKE) delete-database-entries
$(MAKE) delete-es-indices
# Make commands for development process.
start-server:
cd server/ && yarn start:dev
start-web-client:
cd web-client/ && yarn start
lint:
cd server/ && yarn lint