Pushing from subversion to web server

前端 未结 7 641
既然无缘
既然无缘 2021-01-31 10:23

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

Unfortunately I hit a road block on the w

7条回答
  •  星月不相逢
    2021-01-31 11:08

    Unless your hosting company has given you access to either cron(1) or a shell, it will be difficult as svn, a centralised VCS, does not have a way to push things to a working directory, you are supposed to svn update.

    Several ways to do what you want, depending on the above mentioned resources available:

    1. define a crontab(5) entry that does cd $WEBSITE && svn update
    2. use ssh to connect to your website and do the same command. The ssh can be automated by a crontab entry on your side.
    3. have a special cgi on your website, hopefully protected by password, that could be run periodically (from cron on your side) that does the same command.

    Best way to me will still be moving to a decentralized VCS (like Mercurial or git) but that is a much bigger project.

提交回复
热议问题