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

composer.lock建议加下.gitignore #35

Closed
lyt8384 opened this issue May 8, 2018 · 2 comments
Closed

composer.lock建议加下.gitignore #35

lyt8384 opened this issue May 8, 2018 · 2 comments

Comments

@lyt8384
Copy link

lyt8384 commented May 8, 2018

composer.lock建议加下.gitignore,不然更新的时候会冲突

@metowolf
Copy link
Owner

metowolf commented May 8, 2018

感谢提醒,这里是基于以下考虑。

应用类把 composer.lock 文件加入版本控制,保证开发人员、用户安装后的环境是一样的。

而用于别人依赖使用的工具类、库,不把 composer.lock 加入版本控制,因为很容易与其它包的依赖版本造成冲突。

因此部署的时候只需要 composer install 就行了,不需要 update 操作,也就没有冲突问题了

@lyt8384
Copy link
Author

lyt8384 commented May 8, 2018

理解~~是我习惯性ins后up导致的。
还有config.old也同理,不过不影响使用

@lyt8384 lyt8384 closed this as completed May 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