{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/app/issues/331","labels_url":"https://api.github.com/repos/cakephp/app/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/app/issues/331/comments","events_url":"https://api.github.com/repos/cakephp/app/issues/331/events","html_url":"https://github.com/cakephp/app/issues/331","id":129529915,"number":331,"title":"RFC: Load additional config specified by envvar","user":{"login":"tmatsuo","id":41815,"avatar_url":"https://avatars.githubusercontent.com/u/41815?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatsuo","html_url":"https://github.com/tmatsuo","followers_url":"https://api.github.com/users/tmatsuo/followers","following_url":"https://api.github.com/users/tmatsuo/following{/other_user}","gists_url":"https://api.github.com/users/tmatsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatsuo/subscriptions","organizations_url":"https://api.github.com/users/tmatsuo/orgs","repos_url":"https://api.github.com/users/tmatsuo/repos","events_url":"https://api.github.com/users/tmatsuo/events{/privacy}","received_events_url":"https://api.github.com/users/tmatsuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-28T18:10:13Z","updated_at":"2016-01-29T02:59:38Z","closed_at":null,"body":"Here is an example implementation.\r\n\r\nIf an envvar `CAKE_ADDITIONAL_CONFIG` is set, bootstrap.php will load the additional config file.\r\n\r\n```php\r\n# after loading the `app.php`\r\n$customConfig = getenv('CAKE_ADDITIONAL_CONFIG');\r\nif ($customConfig !== false) {\r\n    Configure::load($customConfig, 'default', true);\r\n}\r\n```\r\nPotentially it may allow multiple configs with separators, but I think it's too much.\r\n\r\nThe motivation behind this proposal is to make it easy for us to create a guide for running CakePHP app on [App Engine Managed VMs](https://cloud.google.com/appengine/docs/managed-vms/). Now we're thinking to host this starter app with some modifications (like [this PR](https://github.com/GoogleCloudPlatform/php-docs-samples/pull/23)), but we'd like to directly use cakephp/app if possible.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/cakephp/app/issues/comments/176545541","html_url":"https://github.com/cakephp/app/issues/331#issuecomment-176545541","issue_url":"https://api.github.com/repos/cakephp/app/issues/331","id":176545541,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T02:59:38Z","updated_at":"2016-01-29T02:59:38Z","body":"@josegonzalez Would you be able to add the session ini environment variables to your cakephp/app pull request?"}}