-
Notifications
You must be signed in to change notification settings - Fork 0
Launching A WordPress Site
Once a WordPress site has been reviewed by a designer and the client and approved for launch, it's time to get the site production ready and deployed.
- Readying Your Code
- Packaging Your Theme
- Deploying to Flywheel
- Deploying to Non-Flywheel Sites
- Launch Tasks
We will assume that you are using Prelude as your starting theme for the project.
- Verify that you are using minified JS and CSS files (this is by default, but may change during development if you are debugging)
- Run
gulp images
to ensure all project image assets are compressed - Merge
develop
branch intomaster
- Bump the theme version to
1.0.0
by runninggulp version --major
Next, we will want to ensure that we package our theme, and save it to dropbox.
- Run
gulp package
- Move created zip file to the project's dropbox (you can remove the zip file from the repo)
If the site will be hosted on Flywheel, deploying is fairly straight forward. See Deploying On Flywheel for more information.
If the site has already been on Flywheel for proofing, just be sure to disable privacy mode and set the DNS information & domain accordingly.
If a WordPress install does not exist, follow the instructions found in Setting Up A WordPress Install Server-Side.
- Move existing site to a folder on server called
_OLD
if one exists - Upload your theme to
wp-contents/themes
- Install and configure WP DB Migrate Pro
- Push database from staging to production
- Save permalinks
- Install and configure WP Rocket Cache
- Install and configure WordFence
There are some various plugins and tasks that must be completed when a site is launched that apply regardless of what type of server the site is being deployed on. These steps should be completed on all projects.
- Search + Replace Staging URLs with Production URLs
- Save Permalinks
- Change factor1admin Password to Complex Password
- Disable "Block Search Engines" in WP
- Disable All Development Plugins
Feel free to open an issue if you find mistakes, enhancements, or would like to see some new documentation.