Skip to content

Commit

Permalink
Merge pull request #19 in PSDK/ext-ruby from bugfix-asinko-ruby-ipass…
Browse files Browse the repository at this point in the history
…enter-app-root-PPP-23492 to master

* commit '626b7c861cc1599b74400ae4b5b8e426cfef1e99':
  BUGFIX PPP-23492 [Ruby extension] It's impossible to run Ruby app on addon domain.
  • Loading branch information
alexeysinko committed Jun 16, 2016
2 parents d26379c + 626b7c8 commit 8c77af1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plib/hooks/ApacheWebConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function getDomainConfig(pm_Domain $domain)
];

if ($domainHandler->getApplication()) {
$fileManager = new pm_FileManager($domainHandler->getDomain()->getId());
$options['PassengerAppRoot'] = $fileManager->getFilePath($domainHandler->getApplication()->getPath());
$options['RailsEnv'] = $domainHandler->getApplication()->getMode();
}

Expand Down

0 comments on commit 8c77af1

Please sign in to comment.