Changes between Version 6 and Version 7 of CodeManagementReleaseProcess


Ignore:
Timestamp:
11/25/11 18:59:23 (5 years ago)
Author:
jim
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeManagementReleaseProcess

    v6 v7  
    3636Where [branch] is the branch you want to work with... Branches available on GitHub are: {{{development}}}, {{{live}}}. Use {{{development}}} for all normal work as this branch is available on the DEV server. Use {{{live}}} only for making small, incremental updates based on the code in LIVE -- but avoid this approach unless absolutely necessary. 
    3737 
    38 Once you have this, you will be able to edit files on your machine and then later commit them back to the repository - once TESTED of course! '''Note''' that the above checkout DOES NOT contain the Drupal settings.php files, nor any files uploaded to the server. It will contain the site's theme though: you will need to get or create these as needed for your setup and configuration. 
     38Once you have this, you will be able to edit files on your machine and then later commit them back to the repository - once TESTED of course! '''Note''' that the above checkout includes a .gitignore files that means the repository DOES NOT contain the Drupal settings.php files, nor any files uploaded to the server, nor any other unnecessary files your computer might add. It will contain the site's theme though: you will need to get or create these as needed for your setup and configuration. 
    3939 
    4040 
     
    8989This step is critical because the DEV server mirrors the setup on LIVE. Hence any issues or differences you didn't spot whilst working on your local machine can be ironed out here. It also allows you to get feedback on your work so far as required. 
    9090 
    91 '''Note:''' To get files onto the server, you must have logged into the development server via SSH - for more on how to do this see wiki:DevelopmentServer#SSHaccess. 
     91'''Note:''' To get files onto the server, you must have logged into the development server via SSH - for more on how to do this see wiki:DevelopmentServer#SSHaccess. '''ALSO NOTE''' the DEV and LIVE servers require the use of {{{sudo}}} to make changes. This means that the Root user on both DEV (Kiwi) and LIVE (Quince) have been given access to the Github account. 
    9292{{{ 
    9393ssh dev.transitionnetwork.org.webarch.net 
    9494cd /web/dev.transitionnetwork.org.webarch.net/www 
    95 git fetch origin  <--- 'origin' is github in this case 
     95sudo git pull  <--- 'origin' is github in this case 
    9696}}} 
    97 The last command gets all the updates to all branches  the DEV site up to the latest Trunk version. Go to http://dev.transitionnetwork.org.webarch.net/ and enjoy the fruits of your labour. 
     97The last command gets all the updates to the current branch ('development' is the only one on DEV) and merges them into the current working directory. Go to http://dev.transitionnetwork.org.webarch.net/ and enjoy the fruits of your labour. You might need to run 'update.php', too. 
    9898 
    9999Depending on the changes, you should test properly and then solicit feedback and testing from managers/stakeholders. This is probably on DEV, but could be on TEST if needed. 
    100100 
    101101 
    102 === 5. Release to LIVE (or TEST) === 
    103 Please note the documentation for the LIVE server is here: wiki:NewLiveServer - and you should have decided whether or not it's necessary to do a run of testing on the TEST site before moving to LIVE... The process for both is the same, just on different machines. 
     102=== 5. Merge 'development' into 'live', pull onto LIVE server === 
     103Please note the documentation for the LIVE server is here: wiki:NewLiveServer - and you should have decided whether or not it's necessary to do a run of testing on the TEST site before moving to LIVE... TEST is not presently set up with a Git repository, but the process for both would be the same. Contact Jim if TEST is actually needed. 
    104104 
    105 '''4a. Prepare for release''' by... 
     105'''4a. Merge your branches''' by... 
     106ON YOUR MACHINE: 
     107{{{ 
     108git checkout [the branch you want to merge into] <--- probably 'live' at this stage] 
     109git pull <--- belt and braces to make sure you've not forgotten to merge something 
     110git merge [your working branch] <--- probably 'development' 
     111}}} 
     112The above will merge your recent work in [your working branch] into [the branch you want to merge into 'live']. This is probably a case of checking out 'live' and merging 'development' at this point. If all ok, follow rest of "3. Merge your code and push back to Github" but pushing the 'live' branch. 
     113 
     114'''4b. Prepare LIVE''' 
    106115 1. SSH into LIVE (or TEST): ssh www.transitionnetwork.org (OR for TEST: ssh test.transitionnetwork.org.webarch.net) 
    107116 1. Go to the site root folder {{{ cd /web/transitionnetwork.org/www }}} (OR cd /web/test.transitionnetwork.org.webarch.net/www)