diff --git a/scripts/archipelago/update.sh b/scripts/archipelago/update.sh index d25b11fe..c3a503c9 100755 --- a/scripts/archipelago/update.sh +++ b/scripts/archipelago/update.sh @@ -2,10 +2,14 @@ # Part of the Archipelago Commons Project # This should be run as: docker exec -ti esmero-php bash -c 'scripts/archipelago/update.sh' +# If you Host Machine (the one where your keyboard and screen is attached!) has 4Gbytes, memory can run out during +# composer update (you will see a "killed" message. We recommend: +# Do a docker ps first and stop every container except esmero-php and esmero-web. +# Re run this script. echo -ne "Updating Archipelago Packages to whatever is latest in this release!\n" echo -ne "Running as " && whoami; -composer update strawberryfield/strawberryfield strawberryfield/format_strawberryfield strawberryfield/webform_strawberryfield archipelago/archipelago_subtheme --no-scripts; +php -d memory_limit=-1 /usr/bin/composer update strawberryfield/strawberryfield strawberryfield/format_strawberryfield strawberryfield/webform_strawberryfield archipelago/archipelago_subtheme --no-scripts; (($? != 0)) && { printf '%s\n' "Updating strawberryfield packages via composer failed"; exit 1; } drush status bootstrap | grep -q Successful; (($? == 0)) && { drush cr; }