Skip to content

Instantly share code, notes, and snippets.

@hanoii
Last active April 25, 2017 16:22
Show Gist options
  • Save hanoii/435ba7511253ce1133746ebb2c007811 to your computer and use it in GitHub Desktop.
Save hanoii/435ba7511253ce1133746ebb2c007811 to your computer and use it in GitHub Desktop.
Possible commands to run on platform.sh after a migration
# Once
# https://docs.platform.sh/frameworks/drupal7/faq.html
drush dl registry_rebuild-7.x-2.3 --destination=/app/tmp
sed -i 's/, define_drupal_root()/, '"'"'\/app\/public'"'"'/' /app/tmp/registry_rebuild/registry_rebuild.php
# Afterwards
cd /app/public
php ../tmp/registry_rebuild/registry_rebuild.php
drush updb -y
drush dis -y securepages
drush vset uc_credit_encryption_path /app/keys
drush en -y module_missing_message_fixer
drush mmmff --all
drush dis -y module_missing_message_fixer
drush -y pm-uninstall module_missing_message_fixer
drush en -y reroute_email
drush vset uc_sagepay_server test
drush vset maintenance_mode 0
drush sqlq "TRUNCATE {sessions}" --db-prefix
drush cc all
# Live
drush vset uc_sagepay_server live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment