-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathdevelop
More file actions
52 lines (42 loc) · 1.07 KB
/
develop
File metadata and controls
52 lines (42 loc) · 1.07 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
#!/usr/bin/env bash
if [ $# -gt 0 ]; then
if [ "$1" == "start" ]; then
docker-compose up -d
elif [ "$1" == "stop" ]; then
docker-compose down
elif [ "$1" == "artisan" ] || [ "$1" == "art" ]; then
shift 1
docker-compose exec \
app \
php artisan "$@"
elif [ "$1" == "composer" ] || [ "$1" == "comp" ]; then
shift 1
docker-compose exec \
app \
composer
elif [ "$1" == "test" ]; then
shift 1
docker-compose exec \
app \
./vendor/bin/phpunit "$@"
elif [ "$1" == "npm" ]; then
shift 1
docker-compose run --rm \
node \
npm "$@"
elif [ "$1" == "yarn" ]; then
shift 1
docker-compose run --rm \
node \
yarn "$@"
elif [ "$1" == "gulp" ]; then
shift 1
docker-compose run --rm \
node \
./node_modules/.bin/gulp "$@"
else
docker-compose "$@"
fi
else
docker-compose ps
fi