crabby80 — 2011-09-14T04:23:40-04:00 — #1
I'm about to set up a PHP dev environment on my mac (Leopard) and going to be using git as my version control, I'm not familiar with a mac setup or git so I'm looking forward to getting stuck in!
I think I'm just going to use the "Sites" directory as my localhost and the location where I deploy from to my server?
Would I simply initialize a git repository for each site in the same directory i.e. Sites/mysite.co.uk/git/
Or is it best to have a completely separate code repository that I develop in;
and then deploy/sync from here to the Sites directory and use localhost as my stage before deployment??
How to others do it any advice would be great, I want to get this right from the start
Thanks in advance
starlion — 2011-09-14T07:04:30-04:00 — #2
One would generally think "Seperate projects, seperate repository". If you edit a file in anothersite.com, mysite.co.uk doesnt care about it.
crabby80 — 2011-09-14T07:41:12-04:00 — #3
StarLion, thank you for the reply, do have a dev environment on a mac, if so, would you mind me asking how you have it set up?
starlion — 2011-09-14T08:33:50-04:00 — #4
I dont actually have a dev enviroment on a mac, but it wouldnt be much different really...
I dont personally use version controlling, but that said i dont often find a need to go backwards - debugging is done on my local enviroment (*AMP(P)), and then deployed when it's done...