Answers.Body: <p>In effect Platform.sh supports any PHP application, though it does have some specific magic for Drupal, but you can run any PHP application unmodified. </p>
  
  <p>All you need is to know is how to inject the correct configuration for the infrastructure dependencies (MySQL, and possibly Redis or Solr in this case).</p>
  
  <p>The specific "Drupal Magic" brings support for installation profiles and "drush make files". So it shouldn't be complicated to setup CiviCRM with Drupal. There is an example <a href="https://github.com/GuGuss/drupal8-civicrm-platformsh" rel="nofollow">Git repository on GitHub for CiviCRM with Drupal 8</a>.</p>
  
  <p>This basically allows you to only commit your own custom code to the repository and let Platform.sh build the whole thing. This is nice because it keeps your Git repository lean, and allows you to benefit "for free" from security updates. Platform.sh also "magically" injects to Drupal the database settings, so you really have nothing to do. So that best way to go is to figure out how to have your CiviCRM installation based on a project.make file.</p>
  
  <p>To host a normal CiviCRM application (without Drupal), there is nothing specific to do. The main thing to understand, is that Platform.sh is Git driven. You can't just go around hacking your production server. The only way to get code to your server is to commit it to Git. Because anything else is evil and no good at all.</p>
  
  <p>For other PHP applications you will need to edit their settings file.</p>
  
  <p>Platform.sh will expose in its environment everything you need to configure your application.</p>
  
  <p>For example, this command will give you all the relationships of your application (and specifically the database configuration).:</p>
  
  <p><code>$relationships = json_decode(base64_decode($_ENV['PLATFORM_RELATIONSHIPS']), TRUE);</code></p>
  
  <p>I hope this help.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-31T21:32:08.507Z
Answers.Text: Have you been able to compare it to Pantheon? (e.g. http://civicrm.stackexchange.com/questions/4464/what-is-required-to-run-civicrm-on-pantheon?rq=1) For instance, does Platform.sh have dynamic endpoints?
Answers.UserDisplayName: herb
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T13:45:34.783Z
Answers.LastActivityDate: 2015-08-27T17:17:17.147Z
Answers.LastEditDate: 2015-08-27T17:17:17.147Z
Answers.UserDisplayName: GuGuss
Body: <p><a href="http://platform.sh" rel="nofollow">Platform.sh</a> is a managed hosting service &amp; devops infrastructure with support for Drupal and Symfony (and apparently any arbitrary php application).</p>
  
  <ul>
  <li>What additional considerations are there for hosting CiviCRM on Platform.sh?</li>
  <li>Are there any specific configurations or patches required?</li>
  <li>Is there any functionality which differs from hosting CiviCRM on a "standard" LAMP stack?</li>
  </ul>
  
Tags: <evaluating-civicrm><hosting><hosting-providers>
Title: What is required to run CiviCRM on Platform.sh?
ThreadText: # What is required to run CiviCRM on Platform.sh?
  
  (Asked by: username_0 on 2015-08-06)
  
  [Platform.sh](http://platform.sh) is a managed hosting service & devops infrastructure with support for Drupal and Symfony (and apparently any arbitrary php application).
  
  * What additional considerations are there for hosting CiviCRM on Platform.sh?
  * Are there any specific configurations or patches required?
  * Is there any functionality which differs from hosting CiviCRM on a "standard" LAMP stack?
  
  **Tags:** evaluating-civicrm, hosting, hosting-providers
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-27. Score: 5
  
  In effect Platform.sh supports any PHP application, though it does have some specific magic for Drupal, but you can run any PHP application unmodified.
  
  All you need is to know is how to inject the correct configuration for the infrastructure dependencies (MySQL, and possibly Redis or Solr in this case).
  
  The specific "Drupal Magic" brings support for installation profiles and "drush make files". So it shouldn't be complicated to setup CiviCRM with Drupal. There is an example [Git repository on GitHub for CiviCRM with Drupal 8](https://github.com/username_1/drupal8-civicrm-platformsh).
  
  This basically allows you to only commit your own custom code to the repository and let Platform.sh build the whole thing. This is nice because it keeps your Git repository lean, and allows you to benefit "for free" from security updates. Platform.sh also "magically" injects to Drupal the database settings, so you really have nothing to do. So that best way to go is to figure out how to have your CiviCRM installation based on a project.make file.
  
  To host a normal CiviCRM application (without Drupal), there is nothing specific to do. The main thing to understand, is that Platform.sh is Git driven. You can't just go around hacking your production server. The only way to get code to your server is to commit it to Git. Because anything else is evil and no good at all.
  
  For other PHP applications you will need to edit their settings file.
  
  Platform.sh will expose in its environment everything you need to configure your application.
  
  For example, this command will give you all the relationships of your application (and specifically the database configuration).:
  
  `$relationships = json_decode(base64_decode($_ENV['PLATFORM_RELATIONSHIPS']), TRUE);`
  
  I hope this help.
  
  > **Comments:**
  > **username_2**: Have you been able to compare it to Pantheon? (e.g. http://civicrm.stackexchange.com/questions/4464/what-is-required-to-run-civicrm-on-pantheon?rq=1) For instance, does Platform.sh have dynamic endpoints?  
  
  ---
  
  