Skip to content

Instantly share code, notes, and snippets.

@ao5357
Created April 6, 2021 19:08
Show Gist options
  • Save ao5357/eca4c902d9ee8098d3f26b2e604c65f3 to your computer and use it in GitHub Desktop.
Save ao5357/eca4c902d9ee8098d3f26b2e604c65f3 to your computer and use it in GitHub Desktop.
Build assets for local petrol
name: petrol
recipe: drupal7
config:
php: '5.6'
via: nginx:1.17
webroot: .
database: mysql:5.7
drush: '^7'
xdebug: true
<?php
/**
* @file
* Drupal site-specific configuration file.
*/
/**
* PHP Settings.
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
ini_set('xdebug.max_nesting_level', 200);
ini_set('upload_max_filesize', '100M');
ini_set('post_max_size', '100M');
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.cookie_lifetime', 0);
/**
* Global vars.
*/
$update_free_access = FALSE;
$drupal_hash_salt = 'dsfdfsdfdsfdfsdfsfsdfsdfsdfsdfsdfsdfsdfsd';
/**
* Drupal conf vars.
*/
$conf['search_cron_limit'] = 0;
$conf['block_cache'] = 0;
$conf['cache'] = 0;
$conf['preprocess_css'] = 0;
$conf['preprocess_js'] = 0;
$conf['securepages_enable'] = FALSE;
$databases = array(
'default' => array(
'default' => array(
'database' => 'drupal7',
'driver' => 'mysql',
'host' => 'database',
'password' => 'drupal7',
'port' => '3306',
'prefix' => '',
'username' => 'drupal7',
),
),
);
// Global elements here.
ini_set('date.timezone', 'America/New_York');
$conf['maintenance_theme'] = 'nypl_twig';
$conf['theme_default'] = 'nypl_twig';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment