donald.san.jose
donald.san.jose

Reputation: 31

PHP Application Deployment with Capistrano

Why does Capistrano try to create a new branch when I run a deployment of my PHP application? My SCM is Git.

Upvotes: 1

Views: 389

Answers (2)

donald.san.jose
donald.san.jose

Reputation: 31

Turns out the branch is only used internally to ensure a clean working directory, from which to copy the release files.

Upvotes: 1

Pascal MARTIN
Pascal MARTIN

Reputation: 400922

Generally speaking, people tend to create a branch when they release an application to their production environment.

This way :

  • They can continue activelly working on the main (development) branch,
  • And, if needed, they can fix critical bugs on the release branch -- that one not being impacted by the current developments.


And they don't create a branch as soon as they deploy, they often at least create a tag -- from which they can branch if there is a bug that needs to be fixed before the next release of the development branch.

Upvotes: 0

Related Questions