- Add/Install/Activte WP Migrate DB Plugin in both environments(local and dev environment).
- Open the Migrate DB plugin, to do this go to:
Dashboard->Tools-> Migrate DB->Migrate (it will be the default
page in the plugin)
- Export and check the option to save and compress fill with gzip.
- In Find rows (at least you need two) set your local environment - the URI of the site page and where the project is saved.
- In Replace set the information where you wanna migrate the site.
- Click the Export & Save Button to start the process, a pop up and a save file setting will show up.
To simplify and always set the correct path, you can check the
"find" setting of the site where the site is going to be imported. So,
you let the "find" of the current site, and add the "find" of the new site in "Replace".
- After Exporting the content go to the dashboard of the pantheon site where is hosted the project
- Click on Database/Files -> Import
- Click on "file" in the MySQL database block
- Find and Open the File created with Migrate DB ( .sql.gz extension)
- After the SQL is uploaded, click in Import.
To be sure the data is added and it replaced the preview content, click on "Clear Caches"
Whenever
you update a Database, reload the dashboard site if you want to add
another Database, if not the won't import your Database!
The content was added but not the your media content. To add this content you need to upload it via FTP from local to DEV.
- In the pantheon dashboard Click on Code-> Connection Mode SFTP, wait until load the SFTP Connection Info, click it
- Get the information, and open a FTP client (Like Filezilla) to connect via SFTP to th Site.
- In your FTP Client move your content from site-project-folder
-> wp-content -> uploads to pantheon media folder in
/srv/bindings/<get this part in the MIGRATE DB
PATH>/code/wp-content/uploads
This Media content can also be uploaded in the pantheon's dashboard
->Database/Files -> Import -> Archive of site files. But is not
possible to add a folder with it content, only files.
Images and thumbnail may not display properly in the dashboard of
wordpress, to fix this there are plugins to help like Regenerate
Thumbnails
No comments:
Post a Comment