upskill-event-manager/wordpress-dev/bin/deploy_config.sh
bengizmo fd79b22c9b feat: Successfully create test user on staging and update test setup
- 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.
2025-04-24 04:15:43 -03:00

12 lines
No EOL
395 B
Bash
Executable file

#!/bin/bash
# Load environment variables from .env
source ../.env
# Define deployment variables
REMOTE_HOST="$UPSKILL_STAGING_IP"
REMOTE_USER="$UPSKILL_STAGING_SSH_USER"
REMOTE_PATH_BASE="$UPSKILL_STAGING_PATH"
PLUGIN_SLUG="hvac-community-events"
REMOTE_PLUGIN_PATH="$REMOTE_PATH_BASE/wp-content/plugins/$PLUGIN_SLUG"
LOCAL_PLUGIN_PATH="wordpress-dev/wordpress/wp-content/plugins/$PLUGIN_SLUG"