This website is made with Drupal. It uses Tome to export the dynamic site to a static site. I'm using some custom bash code to build and preview the static site. It use Concurrently to run two processes in one terminal session.
alias brookemahoneycomCd='cd ~/Sites/brookemahoneycom'
brookemahoneycomLaunch () {
# Starts Orbstack if it isn't running.
orb
brookemahoneycomCd
cd drupal
ddev launch
}
brookemahoneycomPreview () {
brookemahoneycomCd
cd docs
concurrently 'python -m http.server' 'open "http://localhost:8000"'
}
brookemahoneycomBuild() {
# Starts Orbstack if it isn't running.
orb
# Changes to the drupal directory.
cd ~/Sites/brookemahoneycom/drupal
# Exports the site with Tome.
ddev drush tome:static --uri=https://brookemahoney.com
# Removes old docs directory.
rm -rf ~/Sites/brookemahoneycom/docs
# Copies the Tome build directory to docs for Github hosting.
cp -R ~/Sites/brookemahoneycom/drupal/html ~/Sites/brookemahoneycom/docs
# Copies CNAME file for Github hosting.
cp ~/projects/brookemahoneycom/sync/CNAME ~/Sites/brookemahoneycom/docs/CNAME
}
All the code for the Drupal install is in this site's Github repo.