mirror of
https://github.com/YunoHost-Apps/civicrm_drupal7_ynh.git
synced 2024-09-03 18:16:19 +02:00
37 lines
No EOL
1.3 KiB
PHP
37 lines
No EOL
1.3 KiB
PHP
<?php
|
|
/**
|
|
* @file yoursite.aliases.drushrc.php
|
|
* Site aliases for [your site domain]
|
|
* Place this file at ~/.drush/ (~/ means your home path)
|
|
*
|
|
* Usage:
|
|
* To copy the development database to your local site:
|
|
* $ drush sql-sync @yoursite.dev @yoursite.local
|
|
* To copy your local database to the development site:
|
|
* $ drush sql-sync @yoursite.local @yoursite.dev --structure-tables-key=common --no-ordered-dump --sanitize=0 --no-cache
|
|
* To copy the production database to your local site:
|
|
* $ drush sql-sync @yoursite.prod @yoursite.local
|
|
* To copy all files in development site to your local site:
|
|
* $ drush rsync @yoursite.dev:%files @yoursite.local:%files
|
|
* Clear the cache in production:
|
|
* $ drush @yoursite.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/
|
|
* $ drush site-alias @self --full --with-optional >> ~/.drush/mysite.aliases.drushrc.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
|
|
*/
|
|
$aliases['__APP__'] = array(
|
|
'root' => '__INSTALL_DIR__/__APP__/',
|
|
'uri' => 'https://__DOMAIN____PATH__',
|
|
'path-aliases' => array(
|
|
'%dump-dir' => '/tmp',
|
|
),
|
|
);
|
|
?>
|