-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.02 KB
/
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
45
46
47
start:
cd api && docker-compose up
db:
cd api && docker-compose up -d
# Requires make db
# Create file ~/.envs/default.json to overrides environment variables
sam:
cd iaas && sam local start-api -n ../.envs/default.json
sam-debug:
cd iaas && sam local start-api -d 9229 -n ../.envs/default.json
# Requires make db
migrate-dev:
cd iaas && sam local invoke MigrateFunction -n ../.envs/default.json
dev:
cd api/src && npm run dev
test:
cd api/src && npm test
test-dev:
cd api/src && npm run test:dev
install:
cd api/src && npm install
# Requires make db
migrate:
cd api/src && NODE_ENV=development npx sequelize-cli db:migrate
mb-dev:
aws s3 mb s3://backent-dev-test
# Requires make mb-dev
deploy-dev:
cd iaas && aws-vault exec my-account-dev -- sh deploy-dev.sh
cleanup-dev:
aws-vault exec my-account-dev -- aws cloudformation delete-stack --stack-name backend-test
aws-vault exec my-account-dev -- aws s3 rb s3://backent-dev-test --force
fix-npm-bug:
cd api/src && find ./node_modules/* -mtime +10950 -exec touch {} \;