I moved over my files, but my updates aren't showing up. What's going on?
So you moved over your files using SFTP or pushed them up with git, but when you refresh your live site, you still can't see your changes? What's going on?
If you are pushing up revised files with git and the changes aren't showing, as long as you did not receive any error messages in the terminal, there are a few likely scenarios:
- You didn't add and commit your changes. Run 'git status' to look for any untracked changes. Add and commit any changes. Then push to your site again!
- Are you connected to your staging environment? Run 'git remote -v' to ensure the necessary repository connections are in place.
- Did you push to 'origin' instead of your staging site? Double check the shortnames of your remote repository connections by running 'git remote -v' Find out which name is attached to which destination, and push again. Once files are in your staging environment, you can copy them to the live/production environment.
And migrating your files is only one half of the WordPress equation. You also need to move over your database contents. Your database is what stores all of your content, your settings, which theme / plugins you have active and so on. Two common ways of moving over the database is using the native WordPress export / import function (which we practice in 103), or exporting and importing a database via a database management tool such as phpMyAdmin (which we practice in 203). Be sure you are importing your database to your staging environment, then copying it to the live/production environment.
If you have successfully moved over your files and database content and you still cannot see your new content, verify that this isn't a caching issue. First perform a hard refresh to make sure you are seeing the most up to date version of your web page. Then ensure no caching plugins are active, or you may also want to hop on chat with your hosting company support to double check that caching on the server-side isn't the problem (though this less common).