Combined SVN FTP system?

2020-08-10 20:03发布

问题:

Are there any systems out there where one can check in changes for a website and have that automatically update the website.

The website effetively runs off the latest stable build the whole time without the need to ftp the files to the server.

回答1:

I would look into using a post-commit hook to update the site when changes are made. This could be something as simple as using "svn export" to export the current state of the repository to the live website location. Of course, this has performance considerations if your site has lots of content, so you may want to do something more sophisticated and only push updates for content that was changed in the commit.



回答2:

You might want to use a combination of CruiseControl (or CruiseControl.NET) and Ant (or NAnt). That does the job extremely well for us.



回答3:

Beanstalk is a solution that integrates ftp with subversion.

http://beanstalkapp.com/



回答4:

Yes, post_commit hook is what you want.

What to hook to? I'd recommend rsync (if your site instance isn't a svn working copy) or ssh with key auth calling a script which does 'cd WEBDIR && svn up' (if it is).



回答5:

Assembla got it, with their FTP and Subversion tools.



回答6:

SVN's post_commit hook is ideal for things like this.

ADS (automatic deployment script looks like a solution to this, but I've never tried it - just found it with a few seconds of Googling.



回答7:

Effectively what needs to happen is that changes I have marked as live or stable needs to be merged with the Live website. This effectively means I don't have to worry about accidently copying over files and if something goes wrong it could be reverted to the previous version again.

I'll investigate post_commit hook but I'll have to find a way to do a backup first so that a problem with subversiondoesn't kill the site.



回答8:

You may want to take a look at Unison. I was fairly happy with it as a publishing mechanism for a site where I wanted, effectively, a smart two-way rsync. You could probably tie it to SVN without much difficulty.



回答9:

svn2web, installed as a post-commit hook, will ftp or scp files from a subversion repository to one or more web servers on every commit. See the SourceForge project for details.



回答10:

http://svn2ftp.com > SVN2FTP allows users to Push SVN / Subversion Commits Directly to an FTP or SFTP Server



回答11:

I think this will help you

https://github.com/midhundevasia/deploy

its works well in Windows.