This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
66 lines (66 loc) · 1.77 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
up:
docker-compose up -d
build:
docker-compose build
create-project:
cp .env-example .env
docker-compose up -d --build
docker-compose exec app composer create-project --prefer-dist laravel/laravel .
docker-compose exec app composer require predis/predis
install:
docker-compose up -d --build
docker-compose exec app composer install
docker-compose exec app cp .env.example .env
docker-compose exec app php artisan key:generate
docker-compose exec app php artisan migrate:fresh --seed
reinstall:
@make destroy
@make install
stop:
docker-compose stop
restart:
docker-compose restart
down:
docker-compose down
destroy:
docker-compose down --rmi all --volumes
ps:
docker-compose ps
app:
docker-compose exec app ash -l
fresh:
docker-compose exec app php artisan migrate:fresh
seed:
docker-compose exec app php artisan db:seed
tinker:
docker-compose exec app php artisan tinker
dump:
docker-compose exec app php artisan dump-server
test:
docker-compose exec app php ./vendor/bin/phpunit
cache:
docker-compose exec app composer dump-autoload -o
docker-compose exec app php artisan optimize:clear
docker-compose exec app php artisan optimize
cache-clear:
docker-compose exec app php artisan optimize:clear
cs:
docker-compose exec app ./vendor/bin/phpcs
cbf:
docker-compose exec app ./vendor/bin/phpcbf
db:
docker-compose exec db bash
db-testing:
docker-compose exec db-testing bash
mysql:
docker-compose exec db bash -c 'mysql -u $$MYSQL_USER -p$$MYSQL_PASSWORD $$MYSQL_DATABASE'
mysql-testing:
docker-compose exec db-testing bash -c 'mysql -u $$MYSQL_USER -p$$MYSQL_PASSWORD $$MYSQL_DATABASE'
node:
docker-compose exec node ash
npm:
docker-compose exec node npm install
docker-compose exec node npm run dev
yarn:
docker-compose exec node yarn
docker-compose exec node yarn run dev