Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加docker部署方式
包含内容
存在的潜在问题
host: 127.0.0.1
替换,可能会存在潜在问题host: 127.0.0.1
替换为host: 127.0.0.1 #mongo host
或者其他存在唯一行的特征的内容方便Dockerfile中使用sed替换,redis配置节同理。src/install/install.js
中,有些地方使用例如fs.existsSync('./install.lock')
的方式定位文件,有的地方使用path.join(__dirname, '../config/config.yml')
的方式定位文件。后一种定位文件的方式存在__dirname
路径是src/install
的问题,例如config.yml会定位到src/config/config.yml
,实际上这个路径并不存在。暂时没有好的办法,先在Dockerfile中粗暴地将它替换掉了。