What is your favorite web app deployment workflow with SVN?

后端 未结 11 1207
陌清茗
陌清茗 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:35

    I haven't had any trouble with the common tags/branches/trunk organization.

    General ongoing development happens in trunk.

    Maintenance of a release in production happens in the appropriate release branch.

    Changes to release branch which are still relevant to trunk are merged.

    When a new version is ready for deployment it is tagged from trunk, then a branch is created from that tag. The new release branch is checked out to the server, parallel to the current release. When it's time to switch, the paths are juggled ("mv appdir appdir.old && mv appdir.new appdir").

    Developers supporting the production release then svn switch their working copy to the new branch, or do a fresh checkout from it.

提交回复
热议问题