I’m encountering an error when migrating anything but the database between environments.
The database pushes/pulls as expected, but when I try to push the media directory I get the following error:
A problem occurred when attempting to move the temp file "/tmp/phpF6Ms74" to "/srv/www/gdaily/releases/20181121230315/web/app/uploads/2018/11/wide-banner.png" (#107mf)
A coupe of things about this are puzzling me:
- why is the file in Development in a /tmp/php… directory, when I uploaded it to the media library?
- why is the destination (Staging) /releases/[date]/?
Shouldn’t both of them be /current/? Or at least be the same as each other?
Looking at the logs from Migrate DB I can see that Development’s
WP_CONTENT_DIR ends in
/current/web/app, whereas Staging’s is
Any explanation (and solution) would be very welcomed.