Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
Drupal 7 update: temp path, stage_file_proxy, structure-tables-list
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnitzel committed Jul 13, 2016
1 parent d62589a commit 0213d56
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
17 changes: 15 additions & 2 deletions Drupal7/drush/drushrc.php
@@ -1,6 +1,19 @@
<?php
/**
* @file
* amazee.io drushrc.php file
*
* This file tells drush about the amazee.io environment
* It contains some defaults that the amazee.io team suggests, please edit them as required.
*/

### Base URL
### Base URL so Drush knows on which URL the site runs (needed for cron, etc.)
if (getenv('AMAZEEIO_BASE_URL')) {
$options['uri'] = getenv('AMAZEEIO_BASE_URL');
}
}

### Skip data for some tables during sql dumps and syncs
# These tables will be syncronized just as structure and not the data inside them, this makes syncing and dumping much faster
# In case you need these tables, call the 'sql-sync' or 'sql-dump' command with: --no-structure-tables-list
$command_specific['sql-sync'] = array('structure-tables-list' => 'cache,cache_*,history,sessions,watchdog,feeds_log');
$command_specific['sql-dump'] = array('structure-tables-list' => 'cache,cache_*,history,sessions,watchdog,feeds_log');
7 changes: 6 additions & 1 deletion Drupal7/sites/default/development.settings.php
Expand Up @@ -23,4 +23,9 @@
$conf['preprocess_css'] = 0;

// Aggregate JavaScript files off
$conf['preprocess_js'] = 0;
$conf['preprocess_js'] = 0;

// Stage file proxy URL from production URL
if(getenv('AMAZEEIO_PRODUCTION_URL')){
$conf['stage_file_proxy_origin'] = getenv('AMAZEEIO_PRODUCTION_URL');
}
4 changes: 4 additions & 0 deletions Drupal7/sites/default/production.settings.php
Expand Up @@ -25,3 +25,7 @@

// Aggregate JavaScript files on
$conf['preprocess_js'] = 1;

// Disabling stage_file_proxy on production, with that the module can be enabled even on production
$conf['stage_file_proxy_origin'] = false;
$conf['stage_file_proxy_origin_dir'] = false;

0 comments on commit 0213d56

Please sign in to comment.