开发者

how can i propagate the changes from mercurial to my production web server?

I've a PHP app and i'm using Mercurial as Revision Control.

开发者_运维百科

I want to code a bash script or something like that that help me to update the content of my web server.

I mean, the idea would like to update all the files that i've changed in a changeset (maybe through SCP), to the production server. If i could get the files that had changed (absolute paths) i could make SCP without problems.

Also, a solution would be to get the absolute paths to the files that are printed with hg stat

But that would be before commit.

Any idea?

Thanks a lot!


A couple of options:

  1. Clone a copy of your repository on your web server
  2. Use rsync to keep your web server directories in sync with a repository on a separate server
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜