SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict crabby80's Avatar
    Join Date
    May 2007
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advice on setting a PHP dev environment on a mac with GIT

    Hi guys,

    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?

    Sites/mysite.co.uk
    Sites/anothersite.co.uk
    Sites/anothersite.com

    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;

    SOMEPATH/git/mysite.co.uk
    SOMEPATH/git/anothersite.co.uk
    SOMEPATH/git/anothersite.com

    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

    Crabby

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    One would generally think "Seperate projects, seperate repository". If you edit a file in anothersite.com, mysite.co.uk doesnt care about it.

  3. #3
    SitePoint Addict crabby80's Avatar
    Join Date
    May 2007
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    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...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •