Any difference between dev and prod is bad. Here is what I do:
- Have a different ip for dev server (Whether internal, external, or on local computer is unimportant) — but dev server must be the exact same setup (see bottom paragraph)
- Change the hosts file (see here) (on yours or a testing computer or a virtual machine) to point to dev server ip
- Result: HTTP requests sent to dev server have Host header field set as “example.com” exactly like it will be for the prod server.
This method removes two differences often encountered otherwise:
- having to change domain name
- having dev code in a subdirectory, but prod code in root or diff subdirectory. This is because I use git to transfer files between dev and prod.
.
.
The dev server is set up exactly the same as the prod server (see Chef or Puppet for how to programmatically manage servers).
Related Posts:
- Suggestions for WPMU Migration (advanced)
- Moving wp from a server to another, with different administrator
- How to: Easily Move a WordPress Install from Development to Production?
- Essential technical features for high-end WordPress web hosting? [closed]
- Database synchronization between dev/staging and production
- How do I export my WordPress blog as a book? [closed]
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- Migrating a WordPress site from One Hosting Provider to Another?
- How do you seamlessly switch hosting?
- Is it possible to export WordPress from command line?
- Export all posts as individual plain txt files
- Export specific menu [duplicate]
- Import posts with featured images
- Best way to import users, post and categories from an external database
- How to Create Export/Import Functionality for Plugin
- Problem: Create a cron job to export posts to a WordPress XML file on server
- How to transfer changes from test environment to live site?
- Migrate Changes from a Staging Site to Production
- Migrating WP site to another URL
- How to migrate a WordPress installation from one site to another, including all images?
- How do I add paragraph tags to all of my posts after relying on wpauto?
- How can I export WordPress posts’ attachments?
- Maintaining synced staging/production WP sites
- How do you add pages on a staging server, and then move them over to production
- Best practices for making a WordPress site “movable”?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- Copy site from one multisite to another
- What’s a better workflow for database migration?
- Does WordPress Import/Export tool actually exports media (images) as well?
- export csv functionality into my plugin
- What actions affect files, DB, or both?
- Setting up WordPress playground and deploying to production server?
- Best practice to import/export specific pages and posts
- Export posts to csv with data from ACF custom fields
- Export a blog(not mine) as a PDF document
- register_post_status invisible but searchable
- How to fix unchanged URLs in Database after running serialized search and replace script?
- Merging WordPress posts from different databases
- export category and sub-category
- Importing New Posts from Live Site into Local Dev Site
- I am having trouble with article formatting when exporting/importing articles from the production to the development environments
- What should I do? A multisite, a single website or many websites? [closed]
- Export local WP install to live – help needed
- Rebuild vs Upgrade – need pointers, advice
- Moving wordpress site to subpage of another site
- Switched hosts to one with cPanel. To transfer my blog should I do the WP install or just be uploading my old WP directory & database?
- What can I expect when moving from a hosted (WordPress.com) blog to one hosted by Page.ly
- Point domain to different webhost’s subdirectory wordpress
- How do I fully migrate post images from one WordPress site to another?
- How do I migrate blog post images from one domain to a new one?
- 403 export error when exporting pages from multisite subfolder site
- Merging two databases without borking it
- Export Custom Report as CSV
- WordPress Staging Site
- What is the difference between wp-admin>Export>All content and MySql dump and import
- Unable to restore from backup – how to obtain old blog posts?
- Export + Import = wrongly duplicated content
- Problems with WordPress Import
- UTF8 Encoding problems when exporting posts
- Redirect to another page using contact form 7? [closed]
- About to migrate site to new domain
- How to give my database to a friend for duplication in a secure way [closed]
- How to transfer one domain to another domain without losing theme options (customizer)?
- How do you keep your live and and testing server?
- WordPress localhost site always redirect to live site [closed]
- How to assign name the WordPress export.xml file
- How to clean up the theme for production?
- How to export custom post type with ACF to individual file with automation?
- When moving a WordPress installation to a new server, why do I have to update each post before content shows?
- How can transfer get so large when exporting data (15-16MB to over 10GB)
- Moving WordPress.com site to personal domain intact
- Database migration issues – Error #1046 No database selected
- product export and import using xml
- Moving from one host to another – cannot access the dashboard
- Export WordPress from one domain to another domain
- Transferring theme and imported post attachments
- How do you do your big exports / imports?
- Syncing WP Database Changes Between Environments: How To Handle Merging w/o touching database
- how to convert a wp multisite into a single site with content from subsites
- I want to embed mystream video in my wordpress site
- Migrating my site to a new domain does not keep any changes made in customizer
- WordPress transfer problems Cant’ find variable jQuery
- custom/automatic export function – one post at a time?
- Upgrading a wordpress site to its newest version
- Multi-site error wordpress after migration
- Export All Posts and Media to XML and/or Word
- Button to download export data WordPress in CSV file
- Site migration and how to write internal links with migration in mind
- How to add a timestamp to the exported WXR filename?
- WooCommerce – Adding Product Attributes to CSV Export
- ExpressionEngine Export/Import Issues
- Export to WXR for pages containing script and iframe tags
- Integrate wordpress before hosting
- Is it possible to get an exported WP site in a zipped folder up and running? [closed]
- Get all post from table and put it in excel sheet
- Moved my site to new host now getting 404
- Migrate bbpress content to posts
- How to export database correctly for local to online
- How can I export Grunion Contact Form messages in an easily parsable format, e.g. CSV?