-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
72 lines (51 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
up:
docker-compose up -d
stop:
docker-compose stop
restart-node:
docker-compose restart node
build:
docker-compose up --build -d && chmod 777 code/dist/log/ code/dist/persistent/user/ code/dist/tmp/
node-shell:
docker-compose run node bash
shell:
docker-compose exec webserver bash
down:
docker-compose down
deploy-develop:
php vendor/bin/dep deploy develop
deploy-production:
php vendor/bin/dep deploy production
rollback:
php vendor/bin/dep rollback production
clean:
rm code/dist/tmp/* -rf
log-get:
rsync --progress sharepic:/var/www/sharepicgenerator.de/shared/log/logs/log.db code/dist/log/logs/log.db
log-shell:
docker-compose exec webserver sqlite3 dist/log/logs/log.db
user-get:
rsync --progress sharepic:/var/www/sharepicgenerator.de/shared/log/logs/user.db code/dist/log/logs/user.db
users:
docker-compose exec webserver sqlite3 dist/log/logs/user.db
test-delete-screenshots:
rm code/tests/screenshots.spec.js-snapshots/* && \
rm code/tests/create-sharepic.spec.js-snapshots/*
test:
npx playwright test
tenant-create:
@read -p "new tenant name: " tenant; \
./scripts/create-tenant.sh $$tenant btw21 \
make compile
tenant-free-create:
@read -p "new free tenant name: " tenant; \
./scripts/create-tenant.sh $$tenant einigungshilfe \
make compile
tenant-delete:
@read -p "which tenant do you want to delete: " tenant; \
./scripts/delete-tenant.sh $$tenant \
make compile
compile:
docker-compose run node gulp build --gulpfile gulpfile.js
make-woff:
woff2_compress in/container/my/font.ttf