-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (30 loc) · 873 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
42
43
44
#### Production commands ####
# Build the app for production
build:
@docker compose -f docker-compose.demo.yml build --no-cache
# Run the app in production mode
start:
@docker compose -f docker-compose.demo.yml up -d
@echo "Wacky ride live at http://localhost:8080/"
# Stop and remove all docker services
stop:
@docker compose -f docker-compose.demo.yml down
# Show logs for all services
logs:
@docker compose -f docker-compose.demo.yml logs --tail=5
#### Other commands ####
# Init .env files and install client/server dependencies
dev:
@cp ./client/.env.template ./client/.env
@cp ./server/.env.template ./server/.env
@cd ./server && npm ci
@cd ./client && npm ci
# Start postgres database
start-db:
@docker compose up -d
# Stop postgres database
stop-db:
@docker compose down
# Database seeding
seed:
@docker compose exec server npm run seed