-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (52 loc) · 2.04 KB
/
Makefile
File metadata and controls
73 lines (52 loc) · 2.04 KB
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
all:
clean: dbreset
rm -rf vendor composer.lock src/*/*dataTables*
migration:
touch changes.sqlite
cd src ; ../vendor/bin/phinx migrate -c ../phinx-adapter.php ; cd ..
autoload:
composer update
demodata:
cd src ; ../vendor/bin/phinx seed:run -c ../phinx-adapter.php ; cd ..
newmigration:
read -p "Enter CamelCase migration name : " migname ; ./vendor/bin/phinx create $$migname -c ./phinx-adapter.php
newseed:
read -p "Enter CamelCase seed name : " migname ; ./vendor/bin/phinx seed:create $$migname -c ./phinx-adapter.php
dbreset:
sudo rm -f db/abraflexi-webhook-acceptor.sqlite* *.sqlite*
echo > db/abraflexi-webhook-acceptor.sqlite
chmod 666 db/abraflexi-webhook-acceptor.sqlite
chmod ugo+rwX db
reset:
vendor/bin/phinx seed:run -c ./phinx-adapter.php -s Reset
demo: dbreset migration demodata
hourly:
cd lib; php -f executor.php h
daily:
cd lib; php -f executor.php d
monthly:
cd lib; php -f executor.php m
postinst:
DEBCONF_DEBUG=developer /usr/share/debconf/frontend /var/lib/dpkg/info/multi-flexibee-setup.postinst configure $(nextversion)
redeb:
sudo apt -y purge multi-flexibee-setup; rm ../multi-flexibee-setup_*_all.deb ; debuild -us -uc ; sudo gdebi -n ../multi-flexibee-setup_*_all.deb ; sudo apache2ctl restart
deb:
debuild -i -us -uc -b
dimage:
docker build -t vitexsoftware/abraflexi-webhook-acceptor .
drun: dimage
docker run -dit --name abraflexi-webhook-acceptorSetup -p 8080:80 vitexsoftware/abraflexi-webhook-acceptor
firefox http://localhost:8080/multi-flexibee-setup?login=demo\&password=demo
vagrant:
vagrant destroy -f
vagrant up
# firefox http://localhost:8080/multi-flexibee-setup?login=demo\&password=demo
release:
echo Release v$(nextversion)
docker build -t vitexsoftware/multi-flexibee-setup:$(nextversion) .
dch -v $(nextversion) `git log -1 --pretty=%B | head -n 1`
debuild -i -us -uc -b
git commit -a -m "Release v$(nextversion)"
git tag -a $(nextversion) -m "version $(nextversion)"
docker push vitexsoftware/multi-flexibee-setup:$(nextversion)
docker push vitexsoftware/multi-flexibee-setup:latest