从 subversion 推送到 Web 服务器 [英] Pushing from subversion to web server

查看:28
本文介绍了从 subversion 推送到 Web 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很久以前,我试图在本地、Web 服务器和 Subversion 之间理清我的系统.我对这个问题有一些很好的解释.

Long ago I tried to sort out my system between local, web server and subversion. I got some good explanation on this question.

不幸的是,我在从 SVN 到 Web 服务器部分的整个推送过程中遇到了障碍,并且从未重新访问过.我的所有项目都是单独的,所以我是唯一一个开发它们的人,而且通常我是唯一的用户.所以我大部分时间都可以直接写入实时服务器.

Unfortunately I hit a road block on the whole pushing from SVN to a web server part and never revisited. All of my projects are solo, so I'm the only one developing them and often I'm the only user. So I've been able to get away with writing directly to the live server most of the time.

在 2009 年,我想改掉那个坏习惯,真正以正确的方式做事.我可以通过 SSH 访问我的 Web 服务器(我可以登录并浏览文件),但我真的不知道该怎么做才能将最新的文件从 SVN 中获取到服务器中.

For 2009 I want to break that bad habit and actually do things the right way. I have SSH access to my web server (I can login and browse the files) but don't really know what to do in order to get the newest files out of SVN, into the server.

我已经用谷歌搜索了我的手指,但我找到的所有东西都需要一些我尚不具备的知识.

I've googled my fingers to the bone but everything I find requires some set of knowledge that I don't yet have.

我真的非常感谢有关如何将我的代码的最新版本从 SVN 存储库自动推送到实时 Web 服务器的分步指导.仅供参考,我目前正在使用 Beanstalk 进行 Subversion 托管,但如果有人有更好的建议,我完全愿意改变它.

I'd really, really appreciate step by step directions of how to automatically push the newest version of my code from an SVN repo to a live web server. FYI I'm currently using Beanstalk for Subversion hosting, but am totally willing to change that if someone has a better suggestion.

谢谢

推荐答案

如果您有 SSH 访问权限,您可以:

If you have SSH access you could do:

svn export [url to repo] [web目录]

svn export [url to repo] [web directory]

导出意味着您不会获得工作副本附带的 .svn 包.

Export will mean you don't get the .svn baggage that comes with a working copy.

这篇关于从 subversion 推送到 Web 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆