-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 1.07 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
APP = docker-compose exec php
YARN = docker-compose run --rm yarn yarn
CONSOLE = bin/console
COMPOSER = composer
assets:
$(APP) $(CONSOLE) assets:install
install:
$(APP) $(COMPOSER) install
yarn-install:
$(YARN) install
yarn-add:
$(YARN) add $(lib)
encore:
$(APP) ./node_modules/.bin/encore dev
encore-watch:
$(APP) ./node_modules/.bin/encore dev --watch
encore-prod:
$(APP) ./node_modules/.bin/encore production
cache-clear:
$(APP) $(CONSOLE) cache:clear --no-warmup || rm -rf var/cache/*
migrations:
$(APP) $(CONSOLE) doctrine:migrations:migrate
migrations-diff:
$(APP) $(CONSOLE) doctrine:migrations:diff
fix-permissions:
sudo chown -R linkinou:linkinou ./apps/ouimiam/var/cache/* ./apps/ouimiam/var/log/* ./apps/ouimiam/src/Migrations/*
sudo chmod -R 777 ./apps/ouimiam/var/log/* ./apps/ouimiam/var/cache/*
fix-images-permission:
docker-compose exec app chown -R www-data web/bundles/front/images
fixtures:
$(APP) $(CONSOLE) hautelook:fixtures:load --purge-with-truncate
show-logs:
tail ./apps/ouimiam/var/log/*
watch-logs:
tail -f ./apps/ouimiam/var/log/*