-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (24 loc) · 873 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
up:
cd laradock ; docker-compose up -d workspace php-worker php-fpm
down:
cd laradock ; docker-compose down -v
env:
cd laradock ; rm .env ; cp .env.schedule .env
build:
cd laradock ; docker system prune -a ; docker-compose build --no-cache workspace php-worker php-fpm
build-mysql:
cd laradock ; docker-compose build --no-cache mysql
bash:
cd laradock ; docker-compose exec --user=laradock workspace bash
install:
cd laradock ; docker-compose exec --user=laradock workspace bash -c "composer install"
cron:
cd laradock ; docker-compose exec --user=laradock workspace bash -c "bin/console app:cron"
test:
cd laradock ; docker-compose exec --user=laradock workspace bash -c "bin/console app:test"
cache-clear:
cd laradock ; docker-compose exec --user=laradock workspace bash -c "bin/console cache:clear"
git-pull:
git pull
restart: down up
pull: git-pull install