Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Thomas
10,910 PointsHow to use separate Git branches to deploy code to repository, then up to dev site, then to live site - using Beanstalk
I need help understanding how to use Git and separate branches to develop and deploy web sites.
Specifically I'd like someone to help me understand how you would use tools like Beanstalk and or deploybot, to deploy from the local server, to staging server, and then to the live server.
I would usually just git push straight from the master branch to Bitbucket and then deploybot would automatically pull those changes to the live server.
I'm confused about how I add a staging/development server into the equation. I don't mind doing some tutorials, I have plenty of time, I just need somebody who can point me in the right direction towards a more professional and modern workflow.
I'm guessing I would need to develop on a separate branch, called development, but can you do git push from that branch? Is that how Beanstalk would know that any changes to the development branch means that the changes go to the development server??
Please can you help?
Best wishes, Michael Thomas
Skype ID: mtwebink
P.S. I'm using Windows 8.1