forked from ucan-lab/docker-laravel-alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (45 loc) · 1.22 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
up:
docker-compose up -d
build:
docker-compose build
rebuild:
docker-compose down --rmi all --volumes
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
create-project:
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
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
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
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