在持续部署中:生产代码库的文件结构是否完全重置?
我想在生产代码库中有一个 .env 文件,但不希望它在 github 上。 于是我就让同事在生产服务器上通过终端访问添加文件。
我的同事告诉我,每次我们与 main 合并时,生产服务器上的整个目录结构都会重置,所以我们不能这样做?有解决这个问题的方法吗?
我认为即使在 CD 中,生产服务器也只是自动执行“git pull origin main”。
有人有什么想法吗?
I want to have a .env file in the production codebase, but do not want it on github.
So I asked my colleague to add the file through terminal access on the production server.
My colleague told me that every time we merge with main, the entire directory structure on the production server resets, so we cannot do that? Is there a work around this?
I thought even in CD the production server just does an automatic "git pull origin main".
Does anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论