1 Star 0 Fork 828

jfzhang1983 / wookteam

forked from aipaw / wookteam 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DOCKER.md 1.98 KB
一键复制 编辑 原始数据 按行查看 历史

安装教程

English Documentation

安装设置(使用Docker)

必须安装 DockerDocker Compose

1、克隆项目到您的本地或服务器

// 使用ssh
git clone git@github.com:kuaifan/wookteam.git
// 或者你也可以使用https
git clone https://github.com/kuaifan/wookteam.git

// 进入目录
cd wookteam

// 拷贝 .env
cp .env.docker .env

2、构建项目

./cmd composer install
./cmd artisan key:generate
./cmd artisan migrate --seed
./cmd php bin/wookteam --port=8080 --ssl=4433
./cmd up -d
./cmd npm install
./cmd npm run prod
./cmd restart

到此安装完毕,项目地址为:http://IP:PORTPORT为构建项目中的参数8080)。

更换端口

./cmd php bin/wookteam --port=8080 --ssl=4433
./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 命令

默认账号

  • admin/123456
  • system/123456

升级更新

注意:在升级之前请备份好你的数据!

  • 进入目录,依次运行以下命令:
git fetch --all
git reset --hard origin/master
git pull
./cmd composer update
./cmd artisan migrate

./cmd npm install
./cmd npm run prod

./cmd restart
PHP
1
https://gitee.com/jfzhang1983/wookteam.git
git@gitee.com:jfzhang1983/wookteam.git
jfzhang1983
wookteam
wookteam
master

搜索帮助