-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
laradock.bat
55 lines (39 loc) · 792 Bytes
/
laradock.bat
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
@echo off
SET cmd=%1
SET target=%2
IF "%cmd%"=="up" (
SET action=up -d workspace php-fpm nginx redis php-worker
IF DEFINED target (
SET action=up -d %target%
)
)
IF "%cmd%"=="stop" (
SET action=stop workspace php-fpm nginx redis php-worker
IF DEFINED target (
SET action=stop %target%
)
)
IF "%cmd%"=="exec" (
IF NOT DEFINED target (
echo "must set container name"
) ELSE (
SET action=exec %target% bash
)
)
IF "%cmd%"=="ew" (
SET action=exec workspace bash
)
IF "%cmd%"=="ep" (
SET action=exec php-fpm bash
)
IF "%cmd%"=="en" (
SET action=exec nginx bash
)
IF "%cmd%"=="epw" (
SET action=exec php-worker bash
)
C:
cd \Projects\laradock
IF DEFINED action (
call docker-compose %action%
)