Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Github Local Setup

    You certainly *can* move backward; I posted the workflow on the Zen Cart github in answer to your question there.

    git checkout v157

    The only trouble is that you'll have to keep fiddling with your configure.php files if you do this, since the databases differ between releases (158 vs 157).
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: Github Local Setup

    Quote Originally Posted by swguy View Post
    You certainly *can* move backward; I posted the workflow on the Zen Cart github in answer to your question there.

    git checkout v157

    The only trouble is that you'll have to keep fiddling with your configure.php files if you do this, since the databases differ between releases (158 vs 157).
    i have not had problems using v157 code on v158 databases.

    that's not to say they do not exist; i just have not had problems.

    v156 and earlier represented problems due to the ezpages db reconfigure, from what i remember.

    that said, i am sure that with a little bit of ingenuity, one could use the configure file to determine which codebase they are in, and then adjust to use the correct database so that these problems do not exist when one changes between branches.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    525
    Plugin Contributions
    0

    Default Re: Github Local Setup

    Quote Originally Posted by swguy View Post
    You certainly *can* move backward; I posted the workflow on the Zen Cart github in answer to your question there.

    git checkout v157

    The only trouble is that you'll have to keep fiddling with your configure.php files if you do this, since the databases differ between releases (158 vs 157).
    So true. I have it opened in Notepad++ and just forgot it was there! Crap. Thanks for the reminder.

  4. #14
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Github Local Setup

    @carlwhat This thread is really not for experienced developers like you. It's for rookies. And my guidance to rookies would be, don't do this and expect it to work well in all circumstances.

    Create a github repo to work on a single active branch (1.5.8 currently), and branch off that.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #15
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Github Local Setup

    Wrote this a little while ago, but got interrupted. Seems to still apply and if not mistaken answers a related question either here or on a different related thread.

    With my git software, I routinely retrieve the 1.5.7 (v157) github repo and then move my pointer for my local version to the current published version. This bypasses any merge conflicts that the team may have had to resolve. I also set local tags to the individual released versions which gives me an opportunity to see what differences have been made following a publicly released version. It does entail keeping up pointers to various areas in the distribution and recognizing what are things that were modified for all and what I may be doing locally.

    As for configure.php files, I don't normally keep them in the repo as they can cause issues in applying to a chosen site or domain if not purposefully omitted when updating files to said server. Besides the zc_install process will normally generate those files with the format being comparable against the dist-configure.php version. Further if the fileset gets pushed to your online github, unless you have set those files to be ignored, then your credentials are publicly captured in a public repo. If the repo is private, of course the same concern doesn't exist.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How do I make a copy of my live site to use on my local MAMP setup?
    By Treece in forum Installing on a Mac Server
    Replies: 1
    Last Post: 5 May 2011, 02:15 AM
  2. Can I setup on ubuntu (local)?
    By raunharman in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 9 Feb 2010, 12:45 PM
  3. Local Courier shipping setup?
    By maxreefer in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Jan 2009, 07:59 PM
  4. local SSL setup how do I do it with zencart?
    By torahtrance in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Aug 2006, 07:35 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR