nb portal deploy
构建并部署指定 Portal 工作区。通常在本地开发完成,并且需要把 Portal 更新到目标 env 时使用。
执行时会先刷新工作区里的 .env 和 .env.local,再运行 pnpm build。构建产物需要包含 dist/index.html。
用法
参数
示例
部署当前 env 中的 Portal:
部署指定 env 中的 Portal:
说明
deploy 面向已经存在的 Portal 开发工作区。如果本地还没有工作区,先使用 nb portal create 创建,或者使用 nb portal pull 从 source storage 拉取。
部署会从 CLI env config 中记录的开发路径构建 Portal,并把构建产物同步到目标应用 storage 下的部署目录。
部署不会修改 source storage 或 Git 配置;这些配置由 nb portal config 更新到远端 Portal 记录。

