Closed flohw closed 6 years ago
This gem (along with capistrano-bundler) makes the assumption that you have one composer.json file at the root for the entire project, since this is by far the most common case.
You are on the right track, although I'd probably dump the capistrano-composer gem for your case entirely, and just manually call composer. You have a specialized case that is beyond the scope of this Gem.
If you wanted to rework your project to fit these assumptions, you could split your project into two repos and deploy them separately. However, I'm sure you have a good reason for doing it the way you are.
Thank you for your response. It's not possible to split the project into multiple parts as these parts are dependent.
I switched to deployer as it is written in PHP, I am more confortable to explore and understand the code. The behavior is the same as capistrano-composer but I can rewrite the hooks and run composer as many time as I want.
If someone find this issue, I think we can do the same with capistrano but as I am not a ruby developer, I can't provide any example or track to do the same.
Hello there,
I hope the project is not as abandoned as it looks like. I have a project with multiple subproject (two in this case) and I want to run composer install inside this two directories. Is there a way to do so ? I can't find a solution for now. I can run composer install in one of the two directory but not in the second. Event if I create another custom task wich reset
composer_
variables theninvoke composer:run, :install
(I think the implementation is good, see below) Thanks.Here is a representation of my architecture:
Implementation of my custom_task: