Closed nghh closed 4 years ago
I have the same problem. Anybody knows a solution? I have dist folder for my theme, but I cant specify it in wordmove.yaml file at the local part. I got the same error and when I try to push my theme, wordmove push it into wrong path.
I tried to search for the problem. In version 3.0.0 there is no error for local paths in the movefile. If I update to 3.1.0 the movefile gets this error again: [/paths] key 'paths:' is undefined. Can anybody solve the problem? I cant use version newer than 3.0.0
@nghh my opinion is that you are running wordmove
from your project's root; your project root is not your wordpress root. wordmove
is calling the command wp search-replace
from a path where wp
can't recognise the wordpress position.
An improvement for Wordmove should be to call wp search-replace
always passing the --path=/custom/or/default/wordpress/path
.
But you can fix - if I'm right - the situation by writing a wp-cli.yml
file in the same folder where movefile.yml
is, containing
path: /Users/me/Sites/clients/client/wwwroot/wp
Moreover, I'm not sure Wordmove is able to correctly expand ../
path you're using in your paths
section. Please try configuring theme like
<% local_path = '/Users/me/Sites/clients/client/wwwroot' %>
<% staging_path = '/vhosts/domain/subdomains/dev/wwwroot' %>
local:
vhost: https://client.local/wp
wordpress_path: <%= local_path %>/wp
paths:
uploads: <%= local_path %>/content/uploads
plugins: <%= local_path %>/content/plugins
themes: <%= local_path %>/content/themes
staging:
vhost: https://dev.client.com/wp
wordpress_path: <%= staging_path %>/wp
paths:
uploads: <%= staging_path %>/content/uploads
plugins: <%= staging_path %>/content/plugins
themes: <%= staging_path %>/content/themes
Realated to https://github.com/welaika/wordmove/pull/513
I was saying
@nghh my opinion is that you are running wordmove from your project's root; your project root is not your wordpress root. wordmove is calling the command wp search-replace from a path where wp can't recognise the wordpress position.
An improvement for Wordmove should be to call wp search-replace always passing the --path=/custom/or/default/wordpress/path.
And now that improvement is shipped in the newer version. So no more need to use wp-cli.yml
for this problem. So I'm going to close :)
Hi,
this is my folder structure
a wordpress core push is working perfectly fine
but none of the wp-content pushes are working for me e.g.:
gives me:
but i do have some files in content/uploads
pushing DB gives me this error:
last but not least:
gives me following error
anyone can help me? thx jan
movefile.yml
wp-config.php