-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (39 loc) · 1.1 KB
/
Copy pathMakefile
File metadata and controls
55 lines (39 loc) · 1.1 KB
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
-include .env
container=${APP_SLUG}_php-fpm
up:
docker-compose up -d
start: up
stop:
docker-compose stop
down: stop
restart: stop up
rebuild: clean
docker-compose build --force-rm --no-cache
docker-compose up -d
build: clean
docker-compose build
docker-compose up -d
clean:
docker-compose rm -vsf
docker-compose down -v --remove-orphans
jumpin:
docker exec -it ${container} bash
composer-install:
docker exec ${container} composer install --ignore-platform-reqs --prefer-dist
migrate:
docker exec ${container} php artisan migrate -n
migrate-fresh:
docker exec ${container} php artisan migrate:fresh -n
seed:
docker exec ${container} php artisan db:seed -n
app-init:
docker exec ${container} cp .env.example .env
docker exec ${container} php artisan storage:link -n
docker exec ${container} php artisan key:generate -n
dev: up composer-install app-init migrate-fresh
run:
npm i --prefix ./application
npm run dev --prefix ./application
permission:
chgrp -R www-data ./application/storage ./application/bootstrap/cache
chmod -R ug+rwx ./application/storage ./application/bootstrap/cache