[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Git dev and deployment workflow

Posted on 2011-03-17
3
Medium Priority
?
752 Views
Last Modified: 2012-05-11
Hi,

Can someone walk me through, or link me to a tutorial outlining the process involved in setting up a git website development workflow?

I have a custom PHP site and I would like to set up a local dev environment, a staging environment and a production environment. The code has config files that are used for database settings, temp folders etc which obviously need to be different per site. The code can be hosted in a private Github repository. I guess what I'm trying to achieve is

Work out how to maintain separate config files
Update staging and production directly from github
Maybe trigger the previous task via a single local command
Maybe have a way to automatically sync the live database to the dev and staging databases

I am fairly new to git so I don't know much about branching etc. All I know is how to create a master and how to commit and fetch. Perhaps it is possible to name my config files something like config.inc.dev, config.inc.stage and config.inc.prod and figure it out from there? I don't know!!

Cheers,
Michael

0
Comment
Question by:mstrelan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
mwochnick earned 1500 total points
ID: 35162486
there are a lot of topics in your request
here is a site that would be a good place to start
http://book.git-scm.com/
0
 
LVL 10

Author Comment

by:mstrelan
ID: 35195841
Thanks, a link from there to Capistrano seems like it should do the trick.
0
 
LVL 10

Author Closing Comment

by:mstrelan
ID: 35195844
B grade because the answer was didn't explain anything, basically just told me to RTFM
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question