Re: [WebDNA] Version control (git or subversion) workflow for WebDNA

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 107943
interpreted = N
texte = > Hi all, >=20 > I'm planning to start using Git or Subversion to manage version = control on my projects. How are people doing this - any workflow setup = suggestions would be great. >=20 > - Tom Hi Tom I don't think git has any special affinity for webdna, or vice versa.. = but: I waded into git headlong last summer.. and am 110% satisfied I did so; = well worth the learning curve! I never used svn, nor any other version = control (outside of duping every file I worked on and appended the name = of the old copy with the last modified date), ...so i can't compare.. = but git is *amazing* - the depth and features never seem to end. I have = to remember (as I often do in all topics coding) to stay focused on just = what I am wanting to do, as opposed to get to the bottom of every = tangential thought stream that inevitably comes up while doing anything = even slightly near the edge of my mastery envelope. Workflow? Um.. well I just keep a git repository ("repo") of/in the = parent dir for each of my projects... which includes at least a subdir = of the webroot for that site, as well a dir for all the misc. supporting = files (photoshop image source files, docs from the client, etc.).. and = after working in BBedit all day (Mac text editor) then nightly I "push" = to my backup HD's "bare repo" for that project (I have one partition of = the HD just for these backup repos), ... and (assuming the current state = of the code is ready to go live) I also push to the remote production = (or testing) server ... <--- I push to a bare repo which is generally = the type of repo you want to push to.. and in that bare repo I have a = "post-receive hook" (IIRC the name of that entity) that checks out = ("checkout") all that code in the bare repo into the live production = webroot. I use the ".gitignore" file to keep track of which things I = do not want to push, when I do a push. I briefly looked into "git = submodules" so that I can push *everything* (incl. all support files) to = my backup HD, but then push *only* the files that make the live website = when I push to the remote production server.. but decided to not learn = git submodules just yet, and instead (for this particular project = anyway) break the total (local) project into 2 git repos.. one that I = use to push the support files to my backup HD, and the other repo which = pushes just the live site files to the the backup HD as well as to the = remote bare repo for auto-subsequent checkout to the live webroot. It = takes some time to get up to speed with all this.. but then the glorious = moment when all you have to do after a long day of editing a couple = dozen files, to make all your work 'go live', is one command: (e.g.) git push liveWeb ...and voila! everything you worked on all day just got moved to all = the right places on the production server, live! There are at least a few good git GUI font ends in case you don't like = to drive from the command line.. but I used git to force me to learn = much more fluency in the CL.. and I am making a semi-educated guess that = you will get the most out of git if you do drive from the CL. The = features specific to "version control" are positively mind blowing when = you start to look deeper than what most coders probably normally use = (like 5% of what is there). The things git can do cover many types of = actions.. including (in my own works): backup, deployment, version = control, branching, checkout, etc. I could spend hours discussing the merits and features of the software, = but there is not time for that, and I am not even qualified to do it = justice ;-) Please ask specific Q's in case you want more. I have several good bookmarks as well. -Govinda= Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (Olin Lagon 2012)
  2. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (Tom Duke 2012)
  3. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (William DeVaul 2012)
  4. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (Govinda 2012)
  5. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (Tom Duke 2012)
  6. Re: [WebDNA] Version control (git or subversion) workflow for WebDNA (Govinda 2012)
  7. [WebDNA] Version control (git or subversion) workflow for WebDNA (Tom Duke 2012)
> Hi all, >=20 > I'm planning to start using Git or Subversion to manage version = control on my projects. How are people doing this - any workflow setup = suggestions would be great. >=20 > - Tom Hi Tom I don't think git has any special affinity for webdna, or vice versa.. = but: I waded into git headlong last summer.. and am 110% satisfied I did so; = well worth the learning curve! I never used svn, nor any other version = control (outside of duping every file I worked on and appended the name = of the old copy with the last modified date), ...so i can't compare.. = but git is *amazing* - the depth and features never seem to end. I have = to remember (as I often do in all topics coding) to stay focused on just = what I am wanting to do, as opposed to get to the bottom of every = tangential thought stream that inevitably comes up while doing anything = even slightly near the edge of my mastery envelope. Workflow? Um.. well I just keep a git repository ("repo") of/in the = parent dir for each of my projects... which includes at least a subdir = of the webroot for that site, as well a dir for all the misc. supporting = files (photoshop image source files, docs from the client, etc.).. and = after working in BBedit all day (Mac text editor) then nightly I "push" = to my backup HD's "bare repo" for that project (I have one partition of = the HD just for these backup repos), ... and (assuming the current state = of the code is ready to go live) I also push to the remote production = (or testing) server ... <--- I push to a bare repo which is generally = the type of repo you want to push to.. and in that bare repo I have a = "post-receive hook" (IIRC the name of that entity) that checks out = ("checkout") all that code in the bare repo into the live production = webroot. I use the ".gitignore" file to keep track of which things I = do not want to push, when I do a push. I briefly looked into "git = submodules" so that I can push *everything* (incl. all support files) to = my backup HD, but then push *only* the files that make the live website = when I push to the remote production server.. but decided to not learn = git submodules just yet, and instead (for this particular project = anyway) break the total (local) project into 2 git repos.. one that I = use to push the support files to my backup HD, and the other repo which = pushes just the live site files to the the backup HD as well as to the = remote bare repo for auto-subsequent checkout to the live webroot. It = takes some time to get up to speed with all this.. but then the glorious = moment when all you have to do after a long day of editing a couple = dozen files, to make all your work 'go live', is one command: (e.g.) git push liveWeb ...and voila! everything you worked on all day just got moved to all = the right places on the production server, live! There are at least a few good git GUI font ends in case you don't like = to drive from the command line.. but I used git to force me to learn = much more fluency in the CL.. and I am making a semi-educated guess that = you will get the most out of git if you do drive from the CL. The = features specific to "version control" are positively mind blowing when = you start to look deeper than what most coders probably normally use = (like 5% of what is there). The things git can do cover many types of = actions.. including (in my own works): backup, deployment, version = control, branching, checkout, etc. I could spend hours discussing the merits and features of the software, = but there is not time for that, and I am not even qualified to do it = justice ;-) Please ask specific Q's in case you want more. I have several good bookmarks as well. -Govinda= Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

800x600 (2003) Re1000002: Setting up shop (1997) Protect vs Authenicate (1997) createfolder not behaving as expected (1999) Make sure I understand this??? (1997) Postprocessing CCs (2000) OLD ORDERS (1998) Cart date/time (2006) Error Messages Returned to User (1997) How far do [showif]s go? (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Fun with Dates - revisited (1997) Trouble with formula.db + more explanation (1997) StoreBuilder ADD 2 CART redirects to default.tpl - PLEASESTO (2002) WebDNA versus ASP [OT] (2002) [WebDNA] WebDNA Newbie Questions (2008) syntax question, not in online refernce (1997) Maybe off topic but how to charge (1997) Database monitoring (2005) Date Calulation (1997)