- Troubleshooted and fixed issues with the plugin deployment script (`deploy-plugin.sh`) to ensure all necessary plugin files, including the main plugin file, are correctly transferred to the staging environment. - Corrected a role name mismatch in the test user creation script (`setup-staging-test-users.sh`) to successfully create a test user with the `hvac_trainer` role on staging. - Updated the E2E test runner script (`run-tests.sh`) to replace deprecated Docker commands with SSH commands targeting the staging environment and explicitly pass the staging URL to Playwright. - Increased the global timeout and enabled retries in the Playwright configuration (`playwright.config.ts`) to aid in debugging test failures on the staging environment. - Updated documentation files (`docs/mvp-integration-testing-plan.md`, `wordpress-dev/README.md`, and `wordpress-dev/MIGRATION_GUIDE.md`) to include instructions on setting up the test user for the staging environment and corrected section numbering in the testing plan.
69 lines
3.1 KiB
Text
69 lines
3.1 KiB
Text
# WordPress Development Environment Configuration
|
|
|
|
# [DEPRECATED] Docker-based development is no longer supported.
|
|
# The project now uses Cloudways Staging as the primary development and testing environment.
|
|
# All Docker-related variables and workflows have been removed as of 2025-04-23.
|
|
# Please refer to the Cloudways variables and documentation for staging and production workflows.
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO # DEBUG, INFO, WARN, ERROR
|
|
|
|
# WordPress
|
|
WP_VERSION=6.7.2 # Required WordPress version
|
|
WP_DEBUG=true # Enable WordPress debug mode
|
|
WP_DEBUG_LOG=true # Enable WordPress debug logging
|
|
WP_HOME=http://localhost:8080 # WordPress home URL
|
|
WP_SITEURL=http://localhost:8080 # WordPress site URL
|
|
WP_ADMIN_USER=devadmin # WordPress admin username
|
|
WP_ADMIN_PASSWORD="S9$O)tqD1yKmM88NxYymQAnH" # WordPress admin password
|
|
WP_APPLICATION_PASSWORD="XjV7 oDsM lqks v6sJ XX9x KlZb" # WordPress application password
|
|
|
|
# Database
|
|
DB_NAME=ncjzsayvsk # Database name
|
|
DB_USER=ncjzsayvsk # Database user
|
|
DB_PASSWORD=sU5knzeUgb # Database password
|
|
DB_HOST=db # Database host
|
|
|
|
# Production Server
|
|
PROD_HOST=146.190.76.204 # Production server IP
|
|
PROD_SSH_USER=benr # Production SSH user
|
|
PROD_PATH=/home/974670.cloudwaysapps.com/ncjzsayvsk/public_html # Production WordPress path
|
|
PROD_SITE_URL=https://upskillhvac.com # Production site URL
|
|
|
|
# Production Database
|
|
PROD_DB_NAME=ncjzsayvsk # Production database name
|
|
PROD_DB_USER=ncjzsayvsk # Production database user
|
|
PROD_DB_PASSWORD=sU5knzeUgb # Production database password
|
|
PROD_DB_HOST=localhost # Production database host
|
|
|
|
# Development Database
|
|
DEV_DB_ROOT_PASSWORD=sU5knzeUgb # Development database root password
|
|
DEV_DB_NAME=ncjzsayvsk # Development database name
|
|
DEV_DB_USER=ncjzsayvsk # Development database user
|
|
DEV_DB_PASSWORD=sU5knzeUgb # Development database password
|
|
|
|
# SSH Settings
|
|
SSH_KEY_PATH=~/.ssh/id_rsa # SSH key path
|
|
SSH_PORT=22 # SSH port
|
|
|
|
# Backup
|
|
MAX_BACKUPS=5 # Maximum number of backups to keep
|
|
BACKUP_AGE_LIMIT=86400 # Maximum age of backups in seconds (24 hours)
|
|
|
|
# Testing
|
|
SCREENSHOT_RETENTION_DAYS=7 # Number of days to keep screenshots
|
|
TEST_USER=test_trainer # Test user username
|
|
TEST_PASSWORD=Test123! # Test user password
|
|
|
|
|
|
# Upskill Cloudways Staging Server
|
|
UPSKILL_STAGING_URL=https://wordpress-974670-5399585.cloudwaysapps.com/
|
|
UPSKILL_STAGING_IP=146.190.76.204
|
|
UPSKILL_STAGING_SSH_USER=roodev
|
|
UPSKILL_STAGING_PASS=uSCO6f1y
|
|
UPSKILL_STAGING_PATH=/home/974670.cloudwaysapps.com/uberrxmprk/public_html
|
|
UPSKILL_STAGING_MASTER_SSH_USER=master_kczkabufnc
|
|
UPSKILL_STAGING_MASTER_SSH_PASS=tmvKuJQ8QptF
|
|
UPSKILL_STAGING_DB_NAME=uberrxmprk
|
|
UPSKILL_STAGING_DB_USER=uberrxmprk
|
|
UPSKILL_STAGING_DB_PASSWORD=vRVr7GJCAZ
|