Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.7 KB

demo.md

File metadata and controls

63 lines (43 loc) · 1.7 KB

Demo sites

All demo sites are built with buildkit (https://github.com/civicrm/civicrm-buildkit).

For example, “d46.demo.civicrm.org” is build with:

ssh www-demo.civicrm.osuosl.org
sudo -u webeditor -H bash
cd /srv/buildkit/
civibuild d46 --url "http://d46.demo.civicrm.org"

Demo sites are rebuilt nightly. The rebuilds are triggered via https://test.civicrm.org/view/Sites/job/demo.civicrm.org/.

Updating build scripts

If there's been a change to the build scripts in civicrm-buildkit, then you may need to update by those by hand.

ssh www-demo.civicrm.osuosl.org
sudo -u webeditor -H bash
cd /srv/buildkit/
git pull
./bin/civi-download-tools

Ad hoc rebuild of a demo site

Useful when it has been trashed too much and you cannot wait 24 hours.

If a rebuild fails, it will usually roll back and restore the old build.

Trouble shooting demo sites

If all demo sites are unresponsive, try a normal apache restart on www-demo.civicrm.osuosl.org

sudo service apache2 restart

Jenkins configuration

Add a new node in Jenkins.

Example:

  • Name: www-demo.civicrm.org
  • of executors: 2

  • Remote root directory: /home/webeditor/jenkins-node
  • Labels: www-demo
  • Usage: Only build jobs with label expressions matching this node
  • Launch method: Launch slave agents via SSH
  • Host: www-demo.civicrm.org
  • Credentials: webeditor
  • Host Key Verification Strategy: Known hosts file Verification Strategy
  • Availability: Keep this agent online as much as possible

Jenkins requires installing the "openjdk-8-jre-headless" package (Debian/Ubuntu).