forked from amontalenti/webappfast-piku
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (32 loc) · 887 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
45
46
help:
@echo "Try: dummycommit, quickcommit, pushboth, deploy, logs, shell, show, hard-restart"
dummycommit:
@echo "Dummy commit"
git commit --allow-empty -m 'dummy commit'
quickcommit:
@echo "Quick commit"
git commit -a -m 'quick commit'
pushboth:
git push && git push origin
deploy:
@echo "Deploy"
git push && piku stop && piku deploy
tail-piku-logs:
piku logs
logs: tail-piku-logs
shell:
piku -t run bash
show:
piku run -- tree /home/piku/.piku -L 2
tail-uwsgi-logs:
piku run -- tail -n1000 -f /home/piku/.piku/uwsgi/uwsgi.log
tail-nginx-access:
piku run -- sudo tail -n100 -f /var/log/nginx/access.log
tail-nginx-errors:
piku run -- sudo tail -n100 -f /var/log/nginx/error.log
uwsgi-restart:
piku run -- sudo /etc/init.d/uwsgi-piku restart
nginx-restart:
piku run -- sudo /etc/init.d/nginx restart
hard-restart: nginx-restart uwsgi-restart
piku restart