This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
forked from yiisoft/yii2-app-basic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
73 lines (52 loc) · 1.54 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
.PHONY: all test tests cs codecept pre_codecept post_codecept run_codecept \
fastcs fast phpcs docs api doc-src guide guia doc-src install db psql \
clean permisos perm p requeriments req dbfull dbh dbheroku
all: requeriments install db permisos
test tests: codecept phpcs
codecept: pre_codecept run_codecept post_codecept
pre_codecept:
tests/run-acceptance.sh
post_codecept:
tests/run-acceptance.sh -d
run_codecept:
vendor/bin/codecept run
fastcs: fast phpcs
fast:
vendor/bin/codecept run unit
vendor/bin/codecept run functional
phpcs cs:
vendor/bin/phpcs
docs:
docs/src/publish-docs.sh
api:
docs/src/publish-docs.sh -a
guide guia:
docs/src/publish-docs.sh -g
serve:
@[ -f .env ] && export $$(cat .env) ; ./yii serve
install:
composer install
composer run-script post-create-project-cmd
db:
db/load.sh
dbfull:
db/create.sh
db/load.sh
dbh dbheroku:
heroku psql < db/plantilla.sql
heroku psql < db/plantilla_datos.sql
psql:
db/psql.sh
clean:
find 'runtime' -not -path 'runtime' -not -name ".gitignore" -exec rm -Rf {} \; || echo ''
find 'web/assets' -not -path 'web/assets' -not -name ".gitignore" -exec rm -Rf {} \; || echo ''
find 'web/tmp' -not -path 'web/tmp' -not -name ".gitignore" -exec rm -Rf {} \; || echo ''
permisos perm p:
echo 'Aplicando permisos para desarrollo. No usar en producción, son inseguros'
sudo chmod -R 770 .
sudo chmod -R 777 runtime
sudo chmod -R 775 web
sudo chmod -R 777 web/assets
bash -c 'yo=$(shell whoami) && sudo chown -R $${yo}:www-data .'
requeriments req:
echo 'Instalando dependencias'