Closed castilma closed 2 years ago
Let me do a first quick try: try to update your movefile.yml
with
staging:
vhost: https://project.staging.foo.com
Note the removed trailing slash. This behaviour happens when the wp option get home
and/or wp option get siteurl
are not correctly updated and I think the trailing slash cuold be the character avoiding the search-replace operation to properly work.
Lemme know if it helps :)
That was it.
I recommend to either report trailing slashes to the user or ignore them automatically.
I recommend to either report trailing slashes to the user or ignore them automatically.
As a reference, I think it would suffice to update the pattern used by doctor
to validate movefile.yml
. Here lib/wordmove/assets/wordmove_schema_remote.yml
and here lib/wordmove/assets/wordmove_schema_local.yml
.
This way a user would be warned about the trailing slash in the vhost
key.
If you'd mind to open an "idea", I'd be prone to promote it to a feature request.
Describe the bug I have a local wp-installation (setup with Local), and a staging server on the web at
https://project.staging.foo.com
.After running
wordmove pull -dv
,http://project.local/
works as expected. Then I try to login by going tohttp://project.local/wp-admin
, but that redirects me tohttps://project.staging.foo.com/wp-login.php?redirect_to=https%3A%2F%2Fproject.local%2Fwp-admin%2F&reauth=1
, which is my staging server, of which I just pulled the database. The wp-admin username and password for my local installation are not accepted, and entering the login data for my staging server gets logged in on the staging server.It looks like there are some settings that don't get rewritten by
wordmove pull -d
in the local setup. Also note the?redirect_to
part of the url, which contains the url that I originally wanted to visit.Expected behavior
I expect to stay on
http://project.local/wp-admin
. After entering the login data for the local installation, I expect to be logged in to the backend of the local installation.Unpacking an earlier backup to
jan-small.sql
and runningmysql --host=localhost --user=[] --password=[] --database=[] --socket=/.../mysql/mysqld.sock --execute="SET autocommit=0;SOURCE wp-content/jan-small.sql;COMMIT"
it works again.movefile.yml
Exception/trace
Environment (please complete the following information):
/.../Local Sites/project/app/public/php-project:
Doctor
wordmove doctor
command returns all greenDoctor ignores mysql_options and can't connect to the mysql server, but
wordmove pull
can connect correctly.I'm not very good with WP. So I don't know, how I could pinpoint the problem. Tell me, what other info you need.