-
Notifications
You must be signed in to change notification settings - Fork 23
update: installation instructions for development and production environments #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update: installation instructions for development and production environments #40
Conversation
|
@People-Sea is attempting to deploy a commit to the deathsatan's projects Team on Vercel. A member of the Team first needs to authorize it. |
❌ Deploy Preview for super-cobbler-53ff65 failed. Why did it fail? →
|
Walkthrough将中文快速安装文档中两个后端依赖安装小节的标题改为“安装依赖(按场景二选一)”,在各处明确加入开发环境和生产环境的 composer 安装命令,并微调文档格式与末尾换行;数据库迁移内容未变。 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (3)
docs/zh/guide/start/fast-install.md (3)
175-180: 避免在生产环境执行 db:seed示例中未区分环境直接给出“数据填充”。生产执行 seed 往往会引入演示/样例数据,风险较高。建议在文档中明确“仅开发环境执行”,或分别给出 dev/prod 两套命令。
-# 数据填充 -php bin/hyperf.php db:seed +# (仅开发环境)数据填充,生产环境请不要执行 +# php bin/hyperf.php db:seed
170-170: 是否保留 -vvv-vvv 适合排障,日常开发安装日志过于冗长。可在正文说明“遇到依赖问题再加 -vvv”,默认使用不带 -vvv 的命令更友好。
172-173: 生产安装建议补充安装优化参数为缩短构建时间并提高稳定性,prod 安装建议补充 --prefer-dist 与 --no-progress;并在文档中强调推荐在 CI/镜像构建阶段完成。
-composer install --no-dev --optimize-autoloader +composer install --no-dev --prefer-dist --no-progress --optimize-autoloader
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/zh/guide/start/fast-install.md(1 hunks)
🔇 Additional comments (1)
docs/zh/guide/start/fast-install.md (1)
169-173: 结构更清晰,方向正确将开发与生产安装分栏说明是正确方向,便于读者按场景操作。
|
@People-Sea 翻译失败 |
Summary by CodeRabbit