Created
May 17, 2016 15:44
-
-
Save Luxian/a550ea2a034d234941e83b53497cb834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (!getenv('AMAZEEIO_SITE_URL')) { | |
| /** | |
| * These settings are used only outside vagrant | |
| */ | |
| /** | |
| * The local domain for the website. It might contain port number | |
| * but no slash at the end | |
| */ | |
| putenv('AMAZEEIO_SITE_URL=fleet-portal.local'); | |
| /** | |
| * Setting the enviroment to development will load the development | |
| * settings: no cache, debug enabled etc | |
| */ | |
| putenv('AMAZEEIO_SITE_ENVIRONMENT=development'); | |
| /** | |
| * SITENAME is used as database name in settings.php. | |
| */ | |
| putenv('AMAZEEIO_SITENAME=sbb-zufriedenheit_ch'); | |
| /** | |
| * Database settings (except database name which is set to SITENAME) | |
| */ | |
| putenv('AMAZEEIO_DB_USERNAME=db-username'); | |
| putenv('AMAZEEIO_DB_PASSWORD=db-password'); | |
| putenv('AMAZEEIO_DB_HOST=127.0.0.1'); | |
| putenv('AMAZEEIO_DB_PORT=3306'); | |
| /** | |
| * Optional: If you have the following error (not the case inside vagrant): | |
| * | |
| * "It is not safe to rely on the system's timezone settings..." | |
| * | |
| * Allowed values can be found here: http://php.net/manual/en/timezones.php | |
| */ | |
| ini_set('date.timezone', 'Europe/Zurich'); | |
| /** | |
| * settings.local.php is loaded at the end of settings.php after everything | |
| * was supposed to be set. Since the environment variables were missing nothing | |
| * was set and we have to try set them again | |
| */ | |
| require __DIR__ . '/settings.php'; | |
| } | |
| /** | |
| * Common settings used in both environments (outside and inside vagrant): | |
| */ | |
| // Increase memory limit | |
| ini_set('memory_limit', '700M'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment