Skip to content

Instantly share code, notes, and snippets.

@jodyHamilton
Created October 2, 2015 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jodyHamilton/5ab1bab4fa25a6a98616 to your computer and use it in GitHub Desktop.
Save jodyHamilton/5ab1bab4fa25a6a98616 to your computer and use it in GitHub Desktop.
assets:
- zivtech8x.sql.gz
steps:
- name: Setup working directory
command: "drush fec --json-config='{\"settings_php.snippets\": []}' --local-environment=probo zivtech 7 "
- name: Import the database
command: 'gunzip -c $ASSET_DIR/zivtech8x.sql.gz | `drush --root=/var/www/zivtech/webroot sql-connect` ; rm $ASSET_DIR/zivtech8x.sql.gz'
- name: Move code in place
command: 'rm -rf /var/www/zivtech/code ; mv $SRC_DIR /var/www/zivtech/code'
- name: Rewrite settings.php file and repair symlinks
command: 'drush fetcher-task ensure_settings_file zivtech ; drush fet ensure_sym_links zivtech'
- name: Running module database updates
command: 'drush --root="/var/www/zivtech/webroot" updb -y'
- name: Enable stage_file_proxy
command: 'drush --root="/var/www/zivtech/webroot" en stage_file_proxy -y'
- name: Revert all features
command: 'drush --root="/var/www/zivtech/webroot" fra -y'
- name: Fix permissions
command: 'chown -R www-data:www-data /var/www/zivtech/public_files'
- name: Generate login link
command: 'cd /var/www/zivtech/code ; drush uli'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment