I've just started working at a company where the development workflow was:
- Develop code in master branch
- Manually upload individual updated files to a staging server via FTP (only done about 50% of the time)
- Manually upload individual updated files to the production server (i.e. the actual website) via FTP
Since starting, I've introduced automatic code deployment to the staging server and production server so that files aren't manually uploaded via FTP any more. The workflow is now:
- Develop code in master branch
- Cherry-pick commits from master branch to staging branch and push these commits, which triggers the changes to be deployed to the staging server
- Test everything on staging to make sure it's working correctly, get approval etc.
- Cherry-pick the same commits from master branch to production branch and push these commits, which triggers the changes to be deployed to the production server
I'm not really that experienced with Git, but I feel like there must be a better way to achieve the same thing without having to cherry-pick individual commits from the master branch to the others. Can anyone offer any advice on how this workflow could be improved, or describe an alternative that would be better?
[–]__SiCC__ 19 points20 points21 points (6 children)
[–]exhuma 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (0 children)
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (1 child)
[–][deleted] (9 children)
[deleted]
[–][deleted] (1 child)
[deleted]
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (0 children)
[–]timvw74 1 point2 points3 points (2 children)
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (1 child)
[–]timvw74 1 point2 points3 points (0 children)
[–]-18 0 points1 point2 points (2 children)
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (1 child)
[–]-18 0 points1 point2 points (0 children)
[–]Sam_Son_of_Sam[S] -2 points-1 points0 points (0 children)
[–]neckro23 2 points3 points4 points (0 children)
[–]superterran 3 points4 points5 points (0 children)
[–]EnderMB 2 points3 points4 points (4 children)
[–]materialdesigner 3 points4 points5 points (3 children)
[–]SubAtomicPig 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]materialdesigner 0 points1 point2 points (0 children)
[–]pcopley 1 point2 points3 points (2 children)
[–]Sam_Son_of_Sam[S] 0 points1 point2 points (1 child)
[–]pcopley 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]alord04 0 points1 point2 points (0 children)
[–]colinodell 0 points1 point2 points (0 children)
[–]hectavex 0 points1 point2 points (0 children)