使用 svn export 发布网站
目前,当我进行更新时(通过缓慢的 adsl 连接),我将所有文件传输到我的网站,
我想让事情变得更容易,所以我最近开始使用托管 svn 服务,我想我可以加快速度一点通过将我的网站直接导出到我的网络服务器上,
我尝试了几次,似乎工作正常,但是它每次都会获取整个网站,这对于 1 个文件更新来说有点慢,
所以我的问题
是可以进行导出并仅获取自上次导出以来的更改(这将如何处理已删除的文件?)
或者进行 svn checkout 并始终更新它而不是 svn 导出并隐藏 .svn 会更容易使用 apache htaccess 的文件夹
这是一个好主意,还是有更好的方法来发布我的网站 我正在尝试实现理想的一键部署类型,
也许有一些陷阱我没有想到其他人已经遇到了
debian/apache/php
I currently ftp all my files to my website when i do an update (over a slowish adsl connection)
And I want to make things easier, so I just recently started using a hosted svn service, and i thought i could speed things up a bit by doing an svn export of my website directly onto my webserver
i have tried that a few times and it seems to work ok, however it does fetch the entire site everytime which is a bit slow for a 1 file update
so my questions are
is it possible to do an export and only get the changes since the last export (how will this handle deleted files ?)
OR will it be easier to do an svn checkout and svn update it all the time instead of svn export and just hide the .svn folders using apache htaccess
is this a good idea, or is there a better way to publish my website
i am trying to achieve the 1 click deploy type ideal
maybe there are some gotcha's i haven't thought of that someone else has run into
debian/apache/php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论