capistrano / composer

Capistrano extension for Composer tasks
MIT License
183 stars 48 forks source link

Composer install stops deploy if there is no composer.json present in the release folder #24

Closed clov3r closed 10 years ago

clov3r commented 10 years ago

I'm trying to use composer to install a plugin's dependencies, which are contained in a subfolder. I can set up my own task to cd to that directory and run composer install, but before I get to that point, the default install that runs when you require the gem tries to run composer install in the root release directory, and, when it can't find a composer.json file, exits with status 1 (with nothing written to stdout or stderr, due to the --quiet flag) and crashes the deploy.

Is there a way to prevent the default install from running?

swalkinshaw commented 10 years ago

Try:

Rake::Task['deploy:updated'].prerequisites.delete('composer:install')

From here: http://stackoverflow.com/questions/22712240/remove-hook-from-flow-in-capistrano-3

clov3r commented 10 years ago

Arigatoo gozaimasu. Many thanks.