Skip to content

HarvardChanSchool/self-hosted-upstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSPH Self-Hosted Upstream

This repository should be used as the upstream repository for compliant self-hosted sites running in the HSPH Pantheon environment. It contains plugins and themes officially supported by HSPH, default configurations for Composer and other internal tools, and deployment Actions.

Monthly maintenance tasks

[Last updated: 2025-02-06]

This is an outline of tasks that should be performed by maintainers during monthly maintenance.

Update self-hosted-upstream

  1. All work must take place on the master branch of self-hosted upstream:

    git checkout master
    git pull origin master
    
  2. Fetch Pantheon upstream:

    git fetch pantheon-wordpress
    git merge pantheon-wordpress/master
    
  3. Check wordpress.org plugins

    wp plugin list --update=available --fields=name,status,version,update_version
    # Upgrade each one unless there's a reason not to
    wp gh plugin upgrade <plugin> # https://github.com/boonebgorges/wp-cli-git-helper
    
  4. Copy latest versions of commercial plugins from wwwhsph repo:

    • gravityforms
  5. Wait a moment - Before pulling content to site-specific repos, wait for the GitHub build action to run.

Update site-specific repos

  1. All work must take place on the main branch:

    git checkout main
    git pull origin main
    
  2. Sync from production site:

    terminus rsync <site>.live:files/ wp-content/uploads/
    terminus local:getLiveDB --overwrite <site>.live
    gunzip ~/pantheon-local-copies/db/<site>-db.tgz
    wp db import ~/pantheon-local-copies/db/<site>-db.tar # Pantheon gives it the wrong extension
    wp search-replace <production-url> <local-url>
    

    Now verify local site

  3. Fetch and merge from self-hosted-upstream:

    git fetch upstream
    git merge upstream/build # Important! Always pull from the build branch
    # Now verify local site
    
  4. Check for wordpress.org plugin updates:

    wp plugin list --update=available --fields=name,status,version,update_version
    # Upgrade each one unless there's a reason not to
    wp gh plugin upgrade <plugin>
    
  5. Check with team for updates to premium and HSPH plugins.

  6. Verify site locally, checking site-specific URLs.

  7. Make sure everything is pushed to GitHub, and wait for the build Action to run.

  8. Create release. Use naming convention vx.y.z, where:

  • x is only bumped for major changes
  • y is bumped for monthly maintenance releases
  • z is bumped for unscheduled bugfixes

Use 'September 2024 maintenance release' format for release description.

  1. Wait for release action to complete, then verify production site.

Site list for monthly maintenance

  1. CHDS

    Web: https://chds.hsph.harvard.edu/

    GitHub: https://github.com/HarvardChanSchool/center-for-health-decision-science

    Pantheon: https://dashboard.pantheon.io/sites/4850d5e8-9a0a-42ce-b919-30b22d5704ec

    Verification URLs:

    boone.cool/hsph/center-for-health-decision-science versions:

    On this last URL, note that Vimeo will not permit promo-block__video embeds on local domains.

    chromium --incognito --new-window https://chds.hsph.harvard.edu/ http://boone.cool/hsph/center-for-health-decision-science/ https://chds.hsph.harvard.edu/approaches http://boone.cool/hsph/center-for-health-decision-science/approaches/ https://chds.hsph.harvard.edu/approaches/practice-and-policy http://boone.cool/hsph/center-for-health-decision-science/approaches/practice-and-policy/ https://chds.hsph.harvard.edu/media-hub/people-and-perspectives http://boone.cool/hsph/center-for-health-decision-science/media-hub/people-and-perspectives/ https://chds.hsph.harvard.edu/two-doctoral-students-join-chds http://boone.cool/hsph/center-for-health-decision-science/two-doctoral-students-join-chds/

  2. Mindfulness

    Web: https://www.mindfulpublichealth.org/

    GitHub: https://github.com/HarvardChanSchool/center-for-mindfulness-in-public-health

    Pantheon: https://dashboard.pantheon.io/sites/9558ba79-7451-404d-87ea-23f30299c214

    Verification URLs:

    boone.cool/hsph/center-for-mindfulness-in-public-health versions:

    chromium --incognito --new-window https://www.mindfulpublichealth.org/ http://boone.cool/hsph/center-for-mindfulness-in-public-health/ https://www.mindfulpublichealth.org/home-en/our-research http://boone.cool/hsph/center-for-mindfulness-in-public-health/home-en/our-research/ https://www.mindfulpublichealth.org/home-en/news-events http://boone.cool/hsph/center-for-mindfulness-in-public-health/home-en/news-events/ https://www.mindfulpublichealth.org/news-events/summer-2024-mindfulness-sessions http://boone.cool/hsph/center-for-mindfulness-in-public-health/news-events/summer-2024-mindfulness-sessions/

  3. NPLI

    Web: https://npli.hsph.harvard.edu/

    GitHub: https://github.com/HarvardChanSchool/national-preparedness-leadership-initiative

    Pantheon: https://dashboard.pantheon.io/sites/07752cca-a62c-439b-8bdf-a3439f86d166#dev/code

    Verification URLs:

    boone.cool/hsph/national-preparedness-leadership-initiative versions:

    chromium --incognito --new-window https://npli.hsph.harvard.edu/ http://boone.cool/hsph/national-preparedness-leadership-initiative/ https://npli.hsph.harvard.edu/our-programs http://boone.cool/hsph/national-preparedness-leadership-initiative/our-programs/ https://npli.hsph.harvard.edu/apply http://boone.cool/hsph/national-preparedness-leadership-initiative/apply/ https://npli.hsph.harvard.edu/news-insights http://boone.cool/hsph/national-preparedness-leadership-initiative/news-insights/ https://npli.hsph.harvard.edu/news-insights/implementing-large-language-models-in-healthcare http://boone.cool/hsph/national-preparedness-leadership-initiative/news-insights/implementing-large-language-models-in-healthcare/

  4. Nutrition Source

    Web: https://nutritionsource.hsph.harvard.edu/

    GitHub: https://github.com/HarvardChanSchool/the-nutrition-source

    Pantheon: https://dashboard.pantheon.io/sites/bac3c981-cc7f-4c97-924d-bf1d29325b57

    Verification URLs:

    boone.cool/hsph/the-nutrition-source versions:

    chromium --incognito --new-window https://nutritionsource.hsph.harvard.edu/ http://boone.cool/hsph/the-nutrition-source/ https://nutritionsource.hsph.harvard.edu/nutrition-news http://boone.cool/hsph/the-nutrition-source/nutrition-news/ https://nutritionsource.hsph.harvard.edu/2024/01/02/healthy-living-guide-2023-2024 http://boone.cool/hsph/the-nutrition-source/2024/01/02/healthy-living-guide-2023-2024/ https://nutritionsource.hsph.harvard.edu/healthy-drinks http://boone.cool/hsph/the-nutrition-source/healthy-drinks/ https://nutritionsource.hsph.harvard.edu/healthy-eating-plate http://boone.cool/hsph/the-nutrition-source/healthy-eating-plate/

  5. Ariadne Labs_

    Web: https://www.ariadnelabs.org

    GitHub: https://github.com/HarvardChanSchool/ariadne-labs

    Pantheon: https://dashboard.pantheon.io/sites/49bb69d1-bda0-4210-9924-eb151c0b55a7

    Note that internal URLs have hero images that are hardcoded with URLs that are relative to the domain root. As such they may not work in local installations that live in subdirectories.

    Verification URLs:

    boone.cool/hsph/ariadne-labs versions:

    chromium --incognito --new-window https://www.ariadnelabs.org http://boone.cool/hsph/ariadne-labs https://www.ariadnelabs.org/safety-gaps/ http://boone.cool/hsph/ariadne-labs/safety-gaps/ https://www.ariadnelabs.org/resources/all/ http://boone.cool/hsph/ariadne-labs/resources/all/ https://www.ariadnelabs.org/events/ http://boone.cool/hsph/ariadne-labs/events/

  6. STRIPED Dietary Supplement Label Explorer

    Web: https://striped-dietary-supplement-label-explorer.hsph.harvard.edu/

    GitHub: https://github.com/HarvardChanSchool/striped-dietary-supplement-label-explorer

    Pantheon: https://dashboard.pantheon.io/sites/e59ad74c-14fd-4d42-b3d0-d80e3811fdd6

    Verification URLs:

    boone.cool/hsph/striped-dietary-supplement-label-explorer versions:

    chromium --incognito --new-window https://striped-dietary-supplement-label-explorer.hsph.harvard.edu/ http://boone.cool/hsph/striped-dietary-supplement-label-explorer/

About

Upstream repo for self-hosted WordPress sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published