/home/docker/.brush/mysite.aliases.brushrc.php
<?php /** * @file mysite.aliases.brushrc.php * Site aliases for [your site domain] * Place this file at ~/.brush/ (~/ means your home path) * * Usage: * To copy the development database to your local site: * $ brush sql-sync @mysite.local @mysite.prod * To copy your local database to the development site: * $ brush sql-sync @mysite.local @mysite.dev --structure-tables-key=common --no-ordered-dump --sanitize=0 --no-cache * To copy the production database to your local site: * $ brush sql-sync @mysite.prod @mysite.local * To copy all files in development site to your local site: * $ brush rsync @mysite.dev:%files @mysite.local:%files * Clear the cache in production: * $ brush @mysite.prod clear-cache all * * You can copy the site alias configuration of an existing site into a file * with the following commands: * $ cd /path/to/settings.php/of/the/site/ * $ brush site-alias @self --full --with-optional >> ~/.drush/mysite.aliases.brushrc.php * Then edit that file to wrap the code in < ? php ? > tags. */ /** * Local alias * Set the root and site_path values to point to your local site */ 'root' => '/var/www/docroot', 'uri' => 'express.docksal', 'path-aliases' => array ( '%brush' => '/var/www/brush', '%modules' => 'modules', '%themes' => 'themes', '%files' => 'files', ), ); 'uri' => 'nyexpress.us', 'root' => '/home/nyexpress/public_html', 'remote-user' => 'nyexpress', 'remote-host' => '216.218.139.246', 'ssh-options' => '-p 19759', // To change the default port on remote server '%dump-dir' => '/tmp', '%modules' => 'modules', '%themes' => 'themes', '%files' => 'files', ), 'no-cache' => TRUE, 'structure-tables-key' => 'common', ), ), // No need to modify the following settings 'sanitize' => TRUE, 'no-ordered-dump' => TRUE, // You can add more tables which contain data to be ignored by the database dump 'common' => array('cache', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'sessions', 'watchdog'), ), ), ), ); ?>
- Log in to post comments