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

What am I missing? #42

Open
working-name opened this issue Mar 14, 2017 · 1 comment
Open

What am I missing? #42

working-name opened this issue Mar 14, 2017 · 1 comment
Assignees

Comments

@working-name
Copy link

working-name commented Mar 14, 2017

Hello there,

I followed the README and got the gem installed, it's available, however, when I try to run cap production wpcli:db:pull, I get

cap aborted!
Don't know how to build task 'wpcli:db:pull' (see --tasks)

I set up some of the paths in production.rb, the server has "wp" as a link to wp-cli.phar, and it runs fine when I try it manually.

What am I missing?
Thanks.

Update: I have a feeling this is not compatible with later Capistrano 3 versions. Maybe it worked at some point, but now it's not even registering its tasks.

★ Update2: Capistrano 3.8 is loading lib/capistrano-wpcli.rb✨, which is empty. I just migrated the contents of lib/capistrano/wpcli.rb and updated the path:

# Load all tasks
files = Dir[File.join(File.dirname(__FILE__), 'capistrano/tasks', '*.rake')] 
files.each do |file|
  load file
end

It is now aware of the wpcli tasks.

@jeremyzahner
Copy link
Collaborator

Hi there!
Glad you managed to get it working. Would you be so kind and think about adding a PR that would be able to handle both versions? That would be awesome!

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

No branches or pull requests

2 participants