mstrelan
asked on
Git dev and deployment workflow
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
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
B grade because the answer was didn't explain anything, basically just told me to RTFM
ASKER