{"action":"created","issue":{"url":"https://api.github.com/repos/kalabox/kalabox/issues/359","labels_url":"https://api.github.com/repos/kalabox/kalabox/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/kalabox/kalabox/issues/359/comments","events_url":"https://api.github.com/repos/kalabox/kalabox/issues/359/events","html_url":"https://github.com/kalabox/kalabox/issues/359","id":99279795,"number":359,"title":"Civicrm on pantheon app","user":{"login":"yosefromano","id":10218159,"avatar_url":"https://avatars.githubusercontent.com/u/10218159?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefromano","html_url":"https://github.com/yosefromano","followers_url":"https://api.github.com/users/yosefromano/followers","following_url":"https://api.github.com/users/yosefromano/following{/other_user}","gists_url":"https://api.github.com/users/yosefromano/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefromano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefromano/subscriptions","organizations_url":"https://api.github.com/users/yosefromano/orgs","repos_url":"https://api.github.com/users/yosefromano/repos","events_url":"https://api.github.com/users/yosefromano/events{/privacy}","received_events_url":"https://api.github.com/users/yosefromano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-05T19:27:15Z","updated_at":"2015-08-05T20:00:56Z","closed_at":null,"body":"I created a pantheon app in kalabox. \r\nIt looks like I still need to disable civicrm in order for the site to work properly. \r\nHow can I use civicrm in my kalabox app?"},"comment":{"url":"https://api.github.com/repos/kalabox/kalabox/issues/comments/128131424","html_url":"https://github.com/kalabox/kalabox/issues/359#issuecomment-128131424","issue_url":"https://api.github.com/repos/kalabox/kalabox/issues/359","id":128131424,"user":{"login":"yosefromano","id":10218159,"avatar_url":"https://avatars.githubusercontent.com/u/10218159?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefromano","html_url":"https://github.com/yosefromano","followers_url":"https://api.github.com/users/yosefromano/followers","following_url":"https://api.github.com/users/yosefromano/following{/other_user}","gists_url":"https://api.github.com/users/yosefromano/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefromano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefromano/subscriptions","organizations_url":"https://api.github.com/users/yosefromano/orgs","repos_url":"https://api.github.com/users/yosefromano/repos","events_url":"https://api.github.com/users/yosefromano/events{/privacy}","received_events_url":"https://api.github.com/users/yosefromano/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T20:00:56Z","updated_at":"2015-08-05T20:00:56Z","body":"if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {\r\n  $env = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE);\r\n  if (!empty($env['conf']['pantheon_binding'])) {\r\n    $pantheon_db = $env['databases']['default']['default'];\r\n    $pantheon_conf = $env['conf'];\r\n\r\n    //user name and password\r\n    $db_string = $pantheon_db['driver'] . '://' . $pantheon_db['username'] . ':' . $pantheon_db['password'] . '@';\r\n    //host\r\n    $db_string .= 'dbserver.' . $pantheon_conf['pantheon_environment'] . '.' . $pantheon_conf['pantheon_site_uuid'] . '.drush.in' . ':' . $pantheon_db['port'];\r\n    // database\r\n    $db_string .= '/' . $pantheon_db['database'] . '?new_link=true';\r\n\r\n    // define the database strings\r\n    define('CIVICRM_UF_DSN', $db_string);\r\n    define('CIVICRM_DSN', $db_string);\r\n\r\n    // define the file paths\r\n    global $civicrm_root;\r\n\r\n    $civicrm_root = '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/code/profiles/civicrm_starterkit/modules/civicrm';\r\n    define('CIVICRM_TEMPLATE_COMPILEDIR', '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/files/civicrm/templates_c/');\r\n\r\n    // Use Drupal base url and path\r\n    global $base_url, $base_path;\r\n    define( 'CIVICRM_UF_BASEURL', $base_url . '/');\r\n    define( 'CIVICRM_SITE_KEY', 'a94ef7c7de538900b3e799e2bdba2a88' );\r\n    \r\n    if ( $pantheon_conf['pantheon_environment'] == 'dev' || $pantheon_conf['pantheon_environment'] == 'test' ){ \r\n      /**\r\n      * This setting logs all emails to a file. Useful for debugging any mail (or civimail) issues.\r\n      * This will not send any email, so ensure this is commented out in production\r\n      */\r\n     define( 'CIVICRM_MAIL_LOG', '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/code/sites/default/files/civicrm/templates_c/mail.log' );\r\n    }\r\n    \r\n    // Add this line only once above any settings overrides\r\n    global $civicrm_setting;\r\n    $civicrm_setting['Directory Preferences']['extensionsDir'] = '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/code/sites/all/extensions/';\r\n    $civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = $base_url . '/sites/all/extensions';\r\n\r\n\t// Kalabox2 settings\r\n\t  elseif (strpos($_SERVER['APPDOMAIN'],'kbox') !== false) {\r\n\t    // Set the DB connection string\r\n\t    $db_string = $env['databases']['default']['default']['driver'] . '://' . $env['databases']['default']['default']['username'] . '@';\r\n\t    $db_string .= $env['databases']['default']['default']['host'] .  '/' . $env['databases']['default']['default']['database'] . '?new_link=true';\r\n\t    define( 'CIVICRM_UF_DSN'           , $db_string);\r\n\t    define( 'CIVICRM_DSN'           , $db_string);\r\n\t    global $civicrm_root;\r\n\t    $civicrm_root = '/code/profiless/civicrm_starterkit/modules/civicrm/';\r\n\t    define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/code/sites/default/files/civicrm/templates_c/' );\r\n\t    define( 'CIVICRM_UF_BASEURL'      , 'http://' . $_SERVER['APPDOMAIN'] . '/' );\r\n\t  }\r\n  }\r\n} else {\r\n\r\n/**\r\n * Content Management System (CMS) Datasource:"}}