Development and Deployment Process #82
Pinned
jduan00
started this conversation in
2 - Best Practices
Replies: 1 comment
-
Setup a new Mac developer environmentSoftware
Install the following: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Working in Progress
Process
3-Stage: DEV - TEST - PROD
We will follow the three stage process:
whereis-api-v0-test
whereis-api-v0
Dev using git
A simple three-branch strategy with main, development (often called
develop
), and hotfix branches. This approach is inspired by simplified Gitflow and is designed to balance ongoing development, production stability, and the ability to quickly address urgent bugs.Overview of the Three-Branch Strategy
How the Strategy Works
main:
This is your production branch. Only thoroughly tested and stable code should be merged here. Deployments to production are made from
main
.development (or
develop
):This is where all new features, improvements, and bug fixes are integrated. Developers branch off from
development
to work on features or fixes, and merge back when ready. Periodically,development
is merged intomain
for a new release.hotfix:
When a critical bug is found in production, a
hotfix
branch is created frommain
. The bug is fixed in this branch, then the fix is merged into bothmain
(to deploy immediately) anddevelopment
(to ensure the fix is included in ongoing work)[1][3][5].Typical Workflow
Feature Development
development
to create feature branches.development
.Releasing
development
is merged intomain
.Hotfixes
hotfix
branch frommain
.hotfix
branch into bothmain
anddevelopment
[1][3][5].hotfix
branch after merging.Example: Using the
develop
Branch1. Create the
develop
Branch (if it doesn't exist yet)Usually, you start with a
main
branch. To create and push adevelop
branch:This sets up
develop
as your integration branch for all upcoming features[1][6][13].2. Start Working on a Feature
Feature branches are created off of
develop
:Do your work and commit as usual:
Push your feature branch if you want to collaborate or back up:
3. Merge the Feature Back Into
develop
Once the feature is complete and tested, merge it back into
develop
:Optionally, delete the feature branch:
4. Prepare for a Release
When you’re ready to release, you can create a release branch from
develop
:Finalize the release (bug fixes, documentation, etc.), then merge into both
main
anddevelop
:Summary Table
In summary:
The
develop
branch acts as the main branch for integrating all new features and changes before they are released. Feature branches are created from and merged back intodevelop
, keepingmain
stable for production.Example Hotfix Workflow
Benefits
development
while production is stabilized viamain
and urgent issues are handled viahotfix
[4][5].In summary:
The three-branch strategy using
main
,development
, andhotfix
branches is a proven, practical approach for teams needing to balance ongoing development with production stability and the ability to quickly address urgent bugs.Tools
IDE
API tools
Cloud service
AI support
Beta Was this translation helpful? Give feedback.
All reactions