When a site is finished and it’s time to deploy to the live server, there are typically two scenarios:
- Site will stay on Flywheel (Enterprise Hosting option)
- Site will move to our Liquid Web Dedicated Server (Standard Hosting option)
Below are the steps required for each scenario, and a set of additional steps required for all situations:
Staying on Flywheel
Note: The steps below assume your development environment is already on Flywheel in the live environment, and that you’re simply changing domain names and launching the website. If you’re moving a site from another hosting environment, you’ll want to use the Duplicator plugin (or something of the sort) to create a Package for migration. Once you have the site slot created on Flywheel, you’ll need to follow the steps outlined in the Duplicator Documentation to migrate your site to Flywheel.
- If your development environment is not on Flywheel and you still need to create a new environment, first refer to the Creating a Site on Flywheel Documentation
- Set your primary domain (ie. example-site.com) as the Primary domain
- Configure your primary domain’s DNS settings to point to Flywheel. Refer to the Domains & DNS Documentation for details.
- Refer to the Additional Steps below, then continue
- Turn Off Development Mode in Flywheel
- Flush Caches to make sure all recent changes are reflected for unauthenticated users (Flywheel’s caches auto-purge every 10mins)
- If needed in the future for testing new features & major updates, you may enable and utilize the Staging Environment for your Flywheel site. For more information on how to use the Staging Environment, visit Flywheels Staging Environment Documentation.
Moving to Liquid Web Dedicated (cPanel) Server
- Create an account on the server
- Make a new Duplicator Package of your development site
- Have an admin (typically Brian Bohrer) provision a new, billable account on the server
- Set up a MySQL Database & Database User and import your SQL database file
- Follow the steps outlined in the Duplicator Documentation to install your WordPress files in the public_html directory
- Refer to the Additional Steps below
Additional Steps
- Use the Better Search Replace plugin under Tools > Better Search Replace to Find/Replace the old development domain (ie. ://example-site.almost.online) to the final live domain (ie. ://example-site.com)
- * Notice the :// – using this before the domain in your Find/Replace distinguishes it as a URL, regardless of http/https, resulting in a more accurate database search
- Deleting Documentation Components
- Deleting Duplicator Packages & Plugin
- If you’re moving completely away from one hosting environment and no longer need the old environment, please delete those files & databases to save on resource usage.