Skip to content

部署指南 ​

Docker ​

在仓库根目录执行 make setup。完成后打开 http://localhost:8080/platform/ 和 http://localhost:8080/tenant/。健康检查是 http://127.0.0.1:8080/platformapi/health。

make setup 会在没有 docker/runtime/.env 时,从 docker/env.docker 复制一份。docker/env.docker 只是示例。市场密钥用下面的命令生成,写入实际环境的 SAAS_MARKETPLACE_ENCRYPTION_KEY:

bash
openssl rand -hex 32

手动部署 ​

在 server/ 执行 composer install,配置 .env,然后:

bash
cd server
php start.php start -d

前端按目录构建:

  • platform 和 tenant 执行 pnpm build,产物在 server/public/platform 和 server/public/tenant
  • pc 执行 pnpm generate,postgenerate 会复制到 server/public/pc
  • uniapp 执行 pnpm build:h5 或 pnpm build:mp-weixin,产物在 uniapp/dist/

基于 MIT 协议开源