-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (30 loc) · 1.12 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
U := ingprog
ansible-development-setup:
mkdir -p tmp
echo 'pass' >> tmp/ansible-vault-password
ansible-playbook ansible/development.yml -i ansible/development -vv
install:
docker-compose -f docker-compose_dev.yml run app_server make install
migrate:
docker-compose -f docker-compose_dev.yml run app_server npx knex migrate:latest
migrate-test:
docker-compose -f docker-compose_dev.yml run app_server npx knex migrate:latest --env test
migrate-rollback:
docker-compose -f docker-compose_dev.yml run app_server npx knex migrate:rollback
seed:
docker-compose -f docker-compose_dev.yml run app_server npx knex seed:run
dev:
docker-compose -f docker-compose_dev.yml up -d
compose: install migrate seed dev
test:
docker-compose -f docker-compose_dev.yml run -e APP_ENV=test app_server npx mocha --timeout 5000 --exit
kill:
docker-compose -f docker-compose_dev.yml kill
reload: kill dev
clear:
sudo rm -rf postgres && rm -rf tmp
ansible-vaults-encrypt:
ansible-vault encrypt ansible/production/group_vars/all/vault.yml
ansible-vaults-decrypt:
ansible-vault decrypt ansible/production/group_vars/all/vault.yml
.PHONY: test