Skip to content

Instantly share code, notes, and snippets.

@opi
Last active October 1, 2019 08:06
Show Gist options
  • Save opi/fda934602521d69291c308f030a01c68 to your computer and use it in GitHub Desktop.
Save opi/fda934602521d69291c308f030a01c68 to your computer and use it in GitHub Desktop.
Drupal local settings
<?php
# Database
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'dbname',
'username' => 'dbuser',
'password' => 'dbpass',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
# Debug
$conf['error_level'] = ERROR_REPORTING_DISPLAY_ALL;
$conf['theme_debug'] = TRUE;
# Do not search for updates
$conf['update_check_frequency'] = 7;
$conf['update_notification_threshold'] = 'security';
# Reroute email
$conf['reroute_email_address'] = "user@domain";
$conf['reroute_email_enable'] = true;
$conf['reroute_email_enable_message'] = true;
# Performance & caching
$conf['cache'] = FALSE;
$conf['block_cache'] = FALSE;
$conf['preprocess_css'] = FALSE;
$conf['preprocess_js'] = FALSE;
# LESS
$conf['less_devel'] = TRUE;
$conf['less_watch'] = FALSE;
# File system
$conf['file_private_path'] = 'sites/default/private';
$conf['file_public_path'] = 'sites/default/files';
$conf['file_temporary_path'] = 'sites/default/files/tmp';
# Default conf
$conf['date_default_timezone'] = 'Europe/Paris';
$conf['site_default_country'] = 'FR';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment