-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
87 lines (68 loc) · 1.71 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Makefile
#
#
ENV := dev
VARSION := v0.1.1
shell:
phpsh app/shell.php
cc:
php app/console cache:clear --env=$(ENV)
warmup:
php app/console cache:warmup --env=$(ENV)
htaccess:
php app/console router:dump-apache
deletelogs:
rm app/logs/apache.log app/logs/access.log
touch app/logs/apache.log app/logs/access.log
database:
php app/console doctrine:database:drop --force --env=$(ENV)
php app/console doctrine:database:create --env=$(ENV)
php app/console doctrine:schema:create --env=$(ENV)
make acl
acl:
php app/console init:acl
fixtures:
php app/console doctrine:fixtures:load --env=$(ENV)
assets:
app/console assets:install --symlink web
app/console assetic:dump
permissions:
setfacl -m default:group:www-data:rwX app/cache/
setfacl -m default:user:$(USER):rwX app/cache/
setfacl -m group:www-data:rwX app/cache/
setfacl -m user:$(USER):rwX app/cache/
setfacl -m default:user:$(USER):rwX app/logs/
setfacl -m default:group:www-data:rwX app/logs/
setfacl -m group:www-data:rwX app/logs/
setfacl -m user:$(USER):rwX app/logs/
rm -rf app/cache/* app/logs/*
test:
phpunit -c app/ src/Storm
vendors:
bin/vendors install
make assets
build_bootstrap:
php vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
reinstall:
git reset --hard
git pull
make vendors
make cc
ctags:
ctags -R --languages=php .
check_cs:
php bin/check_cs fix
install:
git reset --hard $(VERSION)
make vendors
ENV=prod make database -e
make deploy
php app/console doctrine:fixtures:load --fixtures=src/Storm/AguilaBundle/DataFixtures/ORM/Prod --env=prod
deploy:
git pull
git reset --hard $(VERSION)
make prodcache
prodcache:
ENV=prod make cc -e
ENV=prod make warmup -e
ENV=prod make assets -e