Skip to content

Commit

Permalink
Commenting out history and west sites
Browse files Browse the repository at this point in the history
  • Loading branch information
ahughes3 authored Nov 26, 2024
1 parent 6451fd7 commit f36abc5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ services:
- hs-colorful
- hs-traditional
- english
- history
- west
## - history
## - west

# A set of commands to run while building this service
commands:
Expand Down Expand Up @@ -57,9 +57,9 @@ services:
# Sync to english, history, and west database & files, does not create a user.
- blt drupal:sync:files --site=english

- blt drupal:sync:files --site=history
# - blt drupal:sync:files --site=history

- blt drupal:sync:files --site=west
# - blt drupal:sync:files --site=west


- chown -R www-data:www-data ${TUGBOAT_ROOT}/docroot/sites/*/files
Expand All @@ -80,13 +80,13 @@ services:
- drush @english.local eval '\Drupal::moduleHandler()->loadInclude("user", "install");user_update_10000();'
- blt drupal:update --site=english

- drush @history.local cr
- drush @history.local eval '\Drupal::moduleHandler()->loadInclude("user", "install");user_update_10000();'
- blt drupal:update --site=history
# - drush @history.local cr
# - drush @history.local eval '\Drupal::moduleHandler()->loadInclude("user", "install");user_update_10000();'
# - blt drupal:update --site=history

- drush @west.local cr
- drush @west.local eval '\Drupal::moduleHandler()->loadInclude("user", "install");user_update_10000();'
- blt drupal:update --site=west
# - drush @west.local cr
# - drush @west.local eval '\Drupal::moduleHandler()->loadInclude("user", "install");user_update_10000();'
# - blt drupal:update --site=west

- npm run theme-build

Expand All @@ -110,8 +110,8 @@ services:
- mysql -e "DROP DATABASE IF EXISTS hs_colorful; CREATE DATABASE hs_colorful;"
- mysql -e "DROP DATABASE IF EXISTS hs_traditional; CREATE DATABASE hs_traditional;"
- mysql -e "DROP DATABASE IF EXISTS english; CREATE DATABASE english;"
- mysql -e "DROP DATABASE IF EXISTS history; CREATE DATABASE history;"
- mysql -e "DROP DATABASE IF EXISTS west; CREATE DATABASE west;"
# - mysql -e "DROP DATABASE IF EXISTS history; CREATE DATABASE history;"
# - mysql -e "DROP DATABASE IF EXISTS west; CREATE DATABASE west;"

# Give the tugboat user access to the new databases.
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'tugboat'; FLUSH PRIVILEGES;"
Expand All @@ -120,15 +120,15 @@ services:
- scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-hs_colorful-humscigrydb423120-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/hs_colorful.sql.gz
- scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-hs_traditional-humscigrydb423132-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/hs_traditional.sql.gz
- scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-english-humscigrydb423084-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/english.sql.gz
- scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-history-humscigrydb423116-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/history.sql.gz
- scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-west-humscigrydb423301-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/west.sql.gz
# - scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-history-humscigrydb423116-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/history.sql.gz
# - scp [email protected]:/mnt/gfs/humscigryphon.prod/backups/prod-west-humscigrydb423301-`date -d '8 hours ago' +%Y-%m-%d`.sql.gz /tmp/west.sql.gz

# Import each database dump into the associated table.
- zcat /tmp/hs_colorful.sql.gz | mysql hs_colorful
- zcat /tmp/hs_traditional.sql.gz | mysql hs_traditional
- zcat /tmp/english.sql.gz | mysql english
- zcat /tmp/history.sql.gz | mysql history
- zcat /tmp/west.sql.gz | mysql west
# - zcat /tmp/history.sql.gz | mysql history
# - zcat /tmp/west.sql.gz | mysql west

# Clean up after ourselves to keep the Preview size small.
- rm /tmp/*.sql.gz

0 comments on commit f36abc5

Please sign in to comment.