What is your favorite web app deployment workflow with SVN?

后端 未结 11 1457
陌清茗
陌清茗 2021-01-31 00:29

We are currently using a somewhat complicated deployment setup that involves a remote SVN server, 3 SVN branches for DEV, STAGE, and PROD, promoting code between them through pa

11条回答
  •  别跟我提以往
    2021-01-31 00:51

    trunk for development, and a branch (production) for the production stuff.

    On my local machine, I have a VirtualHost that points to the trunk branch, to test my changes.

    Any commit to trunk triggers a commit hook that does an svn export and sync to the online server's dev URL - so if the site is stackoverflow.com then this hook automatically updates dev.stackoverflow.com

    Then I use svnmerge to merge selected patches from trunk to production in my local checkouts. I have a VirtualHost again on my local machine pointing to the production branch.

    When I commit the merged changes to the production branch, again an SVN export hook updates the production (live) export and the site is live!

提交回复
热议问题