-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 857 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
all: say_hello
say_hello:
@echo "Hello World!"
up:
@docker-compose up -d
down:
@docker-compose down --remove-orphans
restart:
@docker-compose down --remove-orphans
@docker-compose up -d
bash:
@docker-compose exec --user=1001 php bash
root_bash:
@docker-compose exec php bash
permissions:
@echo "Correcting all the permissions..."
@docker-compose exec php php artisan cache:clear
@docker-compose exec php chown -R www-data:www-data storage
@docker-compose exec php chown -R www-data:www-data vendor
@echo "Ownerships updated"
@docker-compose exec php chmod -R 757 storage
@docker-compose exec php chmod -R 757 vendor
@echo "Permissions updated"
composer_install:
@docker-compose run --rm composer composer install
composer_autoload:
@docker-compose run --rm composer composer dump-autoload
phpcs:
@docker-compose exec phpcs phpcs