Add VIP production site content for local development
Local development and testing can be more effective if the local environment is running with a copy of a production environment’s database and media files.
Ready to get started with WordPress VIP? Contact us
Showing page 12 of 17
Local development and testing can be more effective if the local environment is running with a copy of a production environment’s database and media files.
VIP recommends setting up a local development environment with the VIP Local Development Environment feature built into VIP-CLI. The steps outlined here are a separate and alternative method for setting up a local environment with Varying Vagrant Vagrants (VVV).
Create one or more local development environments, each with their own unique configurations, using the VIP Local Development Environment built into VIP-CLI.
Developing code, debugging code, and performing minor testing can be more convenient on a local or cloud development environment than on a non-production VIP Platform environment.
Tthe WooCommerce plugin and related extensions should be maintained on the most up to date release version. This is essential for application security, and provides the benefits of bug fixes and performance improvements, as well as having access to new features.
WooCommerce provides instructions to enable WooCommerce Debug Logging. However, on VIP the WC Logger must be configured to write to the WC_Log_Handler_DB
handler to prevent debug logs from writing to the /tmp
files directory. This WC Logger handler should be defined in the vip-config.php
file as seen in this example:
When troubleshooting an issue with WooCommerce core or extensions, the first step is to reproduce the issue in a local development environment and a non-production environment. Set up the local development environment by following the outlined steps for provisioning the VIP application’s codebase and the VIP MU plugins.
Enterprise Search has built-in Search Dev Tools that are useful for testing individual queries and debugging.
The core WordPress function wp_unique_post_slug
generates a unique slug for a newly published post. The function makes it possible to avoid slug conflicts (e.g., if an identical post title gets reused) by appending an integer to the end of the newer slug (e.g., monthly-report-2
or photo-17
).
Customize the search results that are generated by Enterprise Search by configuring options such as sorting by date, relevancy, fuzziness, and more.