Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared path is wrong if your deploy_to is different #39

Closed
gagarine opened this issue Apr 25, 2015 · 3 comments
Closed

Shared path is wrong if your deploy_to is different #39

gagarine opened this issue Apr 25, 2015 · 3 comments

Comments

@gagarine
Copy link
Member

See #22

This will not works.
SSHKit.config.command_map[:composer] = "php #{shared_path.join("composer.phar")}"

@austinpray
Copy link

PRs accepted

@swalkinshaw
Copy link
Member

This is not an issue with this specific extension. It's just a limitation of Capistrano itself. I suggest you either go with the workaround from #22 or try and bring this issue up on Capistrano.

@gido
Copy link

gido commented Aug 7, 2015

I think that in capistrano-rails they're addressing the same issue.

Maybe something like this do the job:

namespace :composer do
  task :set_composer_command_map do
    SSHKit.config.command_map[:composer] = "#{shared_path.join("composer.phar")}"
  end
end

Capistrano::DSL.stages.each do |stage|
  after stage, 'composer:set_composer_command_map'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants