必须安装
Docker
和Docker Compose
# 1、克隆项目到您的本地或服务器
# 使用ssh
git clone git@github.com:kuaifan/wookteam.git
# 或者你也可以使用https
git clone https://github.com/kuaifan/wookteam.git
# 2、进入目录
cd wookteam
# 3、一键构建项目
./cmd install
安装完毕,项目地址为:http://IP:PORT
(PORT
默认为8000
)。
./cmd php bin/wookteam --port=8000 --ssl=44300
./cmd up -d
./cmd stop
一旦应用程序被设置,无论何时你想要启动服务器(如果它被停止)运行以下命令
./cmd start
你可以使用以下命令来执行
./cmd artisan "your command" // 运行 artisan 命令
./cmd php "your command" // 运行 php 命令
./cmd composer "your command" // 运行 composer 命令
./cmd supervisorctl "your command" // 运行 supervisorctl 命令
./cmd test "your command" // 运行 phpunit 命令
./cmd npm "your command" // 运行 npm 命令
./cmd yarn "your command" // 运行 yarn 命令
./cmd mysql "your command" // 运行 mysql 命令
注意:在升级之前请备份好你的数据!
# 进入目录,运行命令
./cmd update