-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commenting out history and west sites
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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;" | ||
|
@@ -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 |