'host' => 'localhost',
'prefix' => '',
);
+
+/**
+ * Load local development override configuration, if available.
+ *
+ * Use settings.local.php to override variables on secondary (staging,
+ * development, etc) installations of this site. Typically used to disable
+ * caching, JavaScript/CSS compression, re-routing of outgoing emails, and
+ * other things that should not happen on development and testing sites.
+ *
+ * Keep this code block at the end of this file to take full effect.
+ */
+if (file_exists(__DIR__ . '/settings.local.php')) {
+ include __DIR__ . '/settings.local.php';
+}
--- /dev/null
+<?php // Put your local customizations here
templater_echo "Setting up Drupal 7..."
if [ ! -e ".gitignore" ] || ! grep -q "^settings.php" .gitignore; then
- echo settings.php >> .gitignore
- echo settings.prod.php >> .gitignore
- echo files >> .gitignore
- echo sql >> .gitignore
+ echo settings.php >> .gitignore
+ echo settings.local.php >> .gitignore
+ echo settings.prod.php >> .gitignore
+ echo files >> .gitignore
+ echo sql >> .gitignore
fi
if [ ! -e "settings.dev.php" ]; then
ln -sf settings.dev.php settings.php
+ if [ ! -e "settings.local.php" ]; then
+ cp $SHARE/drupal7/files/settings.local.php settings.local.php
+ fi
+
templater_install_makefile $SHARE/drupal7/files/Makefile.drupal7
if [ ! -e "drupal.make.yml" ]; then
*/
$settings['entity_update_batch_size'] = 50;
-/**
- * Load local development override configuration, if available.
- *
- * Use settings.local.php to override variables on secondary (staging,
- * development, etc) installations of this site. Typically used to disable
- * caching, JavaScript/CSS compression, re-routing of outgoing emails, and
- * other things that should not happen on development and testing sites.
- *
- * Keep this code block at the end of this file to take full effect.
- */
-#
-# if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
-# include $app_root . '/' . $site_path . '/settings.local.php';
-# }
-
/**
* Basic config set by templater - https://templater.fluxo.info
*/
$settings['trusted_host_patterns'] = array(
'^localhost$',
);
+
+/**
+ * Load local development override configuration, if available.
+ *
+ * Use settings.local.php to override variables on secondary (staging,
+ * development, etc) installations of this site. Typically used to disable
+ * caching, JavaScript/CSS compression, re-routing of outgoing emails, and
+ * other things that should not happen on development and testing sites.
+ *
+ * Keep this code block at the end of this file to take full effect.
+ */
+if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
+ include $app_root . '/' . $site_path . '/settings.local.php';
+}
--- /dev/null
+<?php // Put your local customizations here
templater_echo "Setting up Drupal 8..."
if [ ! -e ".gitignore" ] || ! grep -q "^settings.php" .gitignore; then
- echo settings.php >> .gitignore
- echo settings.prod.php >> .gitignore
- echo services.yml >> .gitignore
- echo files >> .gitignore
- echo sql >> .gitignore
+ echo settings.php >> .gitignore
+ echo settings.local.php >> .gitignore
+ echo settings.prod.php >> .gitignore
+ echo services.yml >> .gitignore
+ echo files >> .gitignore
+ echo sql >> .gitignore
fi
if [ ! -e "settings.dev.php" ]; then
ln -sf settings.dev.php settings.php
+ if [ ! -e "settings.local.php" ]; then
+ cp $SHARE/drupal7/files/settings.local.php settings.local.php
+ fi
+
if [ ! -e "services.yml" ]; then
cp $SHARE/drupal8/files/default.services.yml services.dev.yml
#cp $SHARE/drupal8/files/default.services.yml .