Skip to content
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

本地开发说明 #28

Closed
2 tasks
atian25 opened this issue Mar 6, 2018 · 5 comments
Closed
2 tasks

本地开发说明 #28

atian25 opened this issue Mar 6, 2018 · 5 comments
Assignees

Comments

@atian25
Copy link
Member

atian25 commented Mar 6, 2018

  • 提供 dockerfile 用于本地 test-local 测试
  • 修改 README 补充本地开发调试指南
@thonatos
Copy link
Member

thonatos commented Mar 6, 2018

dockerfile 以及 docker-compose 一键拉起类正式环境(#38

@thonatos
Copy link
Member

thonatos commented Mar 7, 2018

@atian25 ,在这边讨论,Docker 支持:

正式环境

  • dockerfile 用于构建 egg-cnode 镜像(可以加到 docker hub 自动构建)
  • docker-compose.yml 启动一个基本和正式环境完全一致的服务(egg-cnode/redis/mongo)

开发环境

这边 docker 有两种用法:

  • docker-compose-dev.yml 只启动 redis/mongo 等数据库及相关服务
  • docker-compose-dev.yml 启动测试环境
    • docker 构建是分阶段的,package.json 变化才会重新装 node_modules
    • 仅 copy 代码消耗可以忽略不计了
    • 这样可以很好的解决 “代码在我这里可以跑,在其他人那边就不行了” 的问题

@thonatos thonatos mentioned this issue Mar 7, 2018
4 tasks
@atian25
Copy link
Member Author

atian25 commented Mar 7, 2018

我现在的需求很简单,要提供开发期支持,不然本地 egg-bin test 的时候,要自己启动 redis 和 mongo

部署这个暂时不关心

@thonatos
Copy link
Member

thonatos commented Mar 7, 2018

好的,那我新建一个 compose file 用于启动 mongo/redis

@thonatos
Copy link
Member

thonatos commented Mar 8, 2018

done.

@thonatos thonatos closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants