Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Prepare the site for deployment

The deployment is based on the git repository for this site stored on git.library.cornell.edu. You have to make sure the repository accurately reflects your development environment before deploy.

  1. Update the drush make file.
    Code Block
    
    cd mysite
    cul_capistrano/update_enabled_modules_list.sh
    

    This script ends showing the differences between an automatically generated drush make file and your local.make.
    Be sure the versions of contributed modules match between these two files. Edit the versions in drupal_config/local.make to make them match.
    (The generated make use * for the drupal core version. You should use a specific core version in your local.make)

  2. Run the make file to be sure all changes are in your dev site.
    Code Block
    
    cd mysite
    cul_capistrano/do_make.sh
    
  3. Commit all changes to your local git repo
    Code Block
    
    git status
    git add --all
    git commit drupal_config/ -m 'my enabled modules, themes and make files'
    git commit public/ -m 'my new drupal core, module, and theme changes'
    git commit --all -m 'anything else, like maybe config/ changes'
    

    In real life you'll be committing each change as you go with an informative message attached to each commit, right?

  4. Push the local git repo to it's origin
    Code Block
    
    git status
    git push
    

    git status should return something like:
    # On branch master
    nothing to commit, working directory clean

Deploy a site

Update Drupal modules

...