factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

phabalicious quits with an error when interaction is required while running composer #42

Closed d34dman closed 5 years ago

d34dman commented 5 years ago

When some interaction is required while running composer, phabalicious quits by giving error like the following.

[Phabalicious\Exception\FailedShellCommandException]           
  `cd /var/www && composer install` failed!                      
  Gathering patches for root package.                            
  Gathering patches for root package.                            
  Gathering patches for dependencies. This might take a minute.

The above error was resolved by running composer install directly in console and then carrying on with phab -cmbb reset

stmh commented 5 years ago

this won't be fixed in the near future. When running commands in a script there's no terminal available. Instead update your composer.json with

 "config": {
      "discard-changes": true,
      ....
}