Skip to content
Snippets Groups Projects
Commit 088565fa authored by jurgenhaas's avatar jurgenhaas
Browse files

Support Drupal 7

parent 3d620ef5
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,6 @@
$options['structure-tables']['common'] = array('cache', 'cache_*', 'history', 'search_*', 'sessions', 'watchdog');
$options['shell-aliases']['pull-sql'] = '!drush -y --create-db --structure-tables-key=common sql-sync @live @dev && drush -y @dev cr && drush -y @dev dev on';
$options['shell-aliases']['pull-sql'] = '!drush -y --create-db --structure-tables-key=common sql-sync @live @dev && drush -y @dev {{ (drupal.version == 8) ? 'cr' : 'cc all' }} && drush -y @dev dev on';
$options['shell-aliases']['pull-files'] = '!drush -y rsync @live:%files @dev:%files --mode=rlDzq --chown=www-data:www-data --safe-links --max-size=20M && drush -y rsync @live:%private @dev:%private --mode=rlDzq --chown=www-data:www-data --safe-links --max-size=20M';
$options['shell-aliases']['pull-all'] = $options['shell-aliases']['pull-sql'] . ' && ' . $options['shell-aliases']['pull-files'];
<?php
{% if drupal.version == 8 %}
$settings['trusted_host_patterns'] = array(
'^{{ projectname }}\.docker\.localhost$',
);
$databases = array (
'default' => array (
'default' => array (
$databases = array(
'default' => array(
'default' => array(
'driver' => 'mysql',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'database' => 'drupal',
......@@ -23,3 +24,25 @@ $config['smtp.settings']['smtp_port'] = '1025';
$config['smtp.settings']['smtp_protocol'] = 'standard';
$config['smtp.settings']['smtp_username'] = '';
$config['smtp.settings']['smtp_password'] = '';
{% elseif drupal.version == 7 %}
$databases = array(
'default' => array(
'default' => array(
'driver' => 'mysql',
'host' => 'mariadb',
'username' => 'drupal',
'password' => 'drupal',
'database' => 'drupal',
'prefix' => '',
),
),
);
$base_url = 'http://{{ projectname }}.docker.localhost:8000';
$conf['smtp_host'] = 'mailhog';
$conf['smtp_hostbackup'] = '';
$conf['smtp_port'] = '1025';
$conf['smtp_protocol'] = 'standard';
$conf['smtp_username'] = '';
$conf['smtp_password'] = '';
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment