i'm new capistrano , ruby/rake well.
since work locally in windows, i'm having quite hard time , then.. i'm running capistrano-wpcli push , pull wordpress database.
the script use gunzip in process, works fine in unix, not in windows. found can configure sshkit adding line:
sshkit.config.command_map[:gunzip] = "gzip -d"
that works fine if pull database, when i'm pushing, still want gunzip executed on remote host.
can somehow hook cap wpcli:db:pull set config if command run, or if command being executed on localhost?
this untested, might able either override task copy/pasting https://github.com/lavmeiker/capistrano-wpcli/blob/master/lib/capistrano/tasks/wpdb.rake#l40
a better option (if works) try , create before action , after action set , unset sshkit command_map.
Comments
Post a Comment