Merge pull request #180 from gabriel403/hotfix/composerHome
Hotfix/composer home
This commit is contained in:
commit
095bf9730d
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -8,3 +8,4 @@ config.php
|
|||
.buildpath
|
||||
.htaccess
|
||||
PHPCI/config.yml
|
||||
cache
|
||||
|
|
@ -76,7 +76,7 @@ class PluginController extends \PHPCI\Controller
|
|||
$this->setComposerJson($json);
|
||||
|
||||
if ($this->canInstall) {
|
||||
shell_exec($this->composerPath . ' update --working-dir=' . APPLICATION_PATH . ' > /dev/null 2>&1 &');
|
||||
shell_exec('COMPOSER_HOME='.APPLICATION_PATH . ' ' . $this->composerPath . ' update --working-dir=' . APPLICATION_PATH . ' > /' . APPLICATION_PATH . '/phpci_composer_remove.log 2>&1 &');
|
||||
}
|
||||
|
||||
header('Location: ' . PHPCI_URL . 'plugin?r=' . $package);
|
||||
|
|
@ -101,7 +101,7 @@ class PluginController extends \PHPCI\Controller
|
|||
$this->setComposerJson($json);
|
||||
|
||||
if ($this->canInstall) {
|
||||
shell_exec($this->composerPath . ' update --working-dir=' . APPLICATION_PATH . ' > /dev/null 2>&1 &');
|
||||
shell_exec('COMPOSER_HOME='.APPLICATION_PATH . ' ' . $this->composerPath . ' update --working-dir=' . APPLICATION_PATH . ' > /' . APPLICATION_PATH . '/phpci_composer_install.log 2>&1 &');
|
||||
|
||||
header('Location: ' . PHPCI_URL . 'plugin?i=' . $package);
|
||||
die;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue