1 Star 0 Fork 898

erickkkk/wookteam

forked from aipaw/wookteam 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
cmd 1.08 KB
Copy Edit Raw Blame History
kuaifan authored 2020-06-11 00:12 . no message
#!/usr/bin/env bash
COMPOSE="docker-compose"
if [ $# -gt 0 ];then
if [[ "$1" == "artisan" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php php artisan "$@"
elif [[ "$1" == "php" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php php "$@"
elif [[ "$1" == "composer" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php composer "$@"
elif [[ "$1" == "supervisorctl" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php supervisorctl "$@"
elif [[ "$1" == "test" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php ./vendor/bin/phpunit "$@"
elif [[ "$1" == "npm" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php npm "$@"
elif [[ "$1" == "yarn" ]]; then
shift 1
$COMPOSE run --rm -w /var/www php yarn "$@"
elif [[ "$1" == "mysql" ]]; then
shift 1
$COMPOSE run --rm -w / mariadb mysql "$@"
elif [[ "$1" == "restart" ]]; then
shift 1
$COMPOSE stop
$COMPOSE start
else
$COMPOSE "$@"
fi
else
$COMPOSE ps
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/erickkkkk/wookteam.git
git@gitee.com:erickkkkk/wookteam.git
erickkkkk
wookteam
wookteam
master

Search