upskill-event-manager/wordpress-dev/bin/deploy_config.sh
bengizmo 0e8b0f0325 feat: Add Zoho CRM integration with staging mode protection
- Implement OAuth 2.0 authentication for Zoho CRM
- Add sync functionality for Events → Campaigns, Users → Contacts, Orders → Invoices
- Create staging mode that prevents production syncs from non-production domains
- Build admin interface for sync management
- Add comprehensive field mapping between WordPress and Zoho
- Include test scripts and documentation
- Ensure production sync only on upskillhvac.com domain
2025-05-19 13:17:44 -03:00

50 lines
No EOL
939 B
Bash
Executable file

#!/bin/bash
# Load environment variables from .env
if [ -f "$(dirname "$0")/../../.env" ]; then
source "$(dirname "$0")/../../.env"
elif [ -f ".env" ]; then
source ".env"
else
echo "Error: .env file not found"
exit 1
fi
# 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"
# Define files/directories to exclude
EXCLUDE_PATTERNS=(
".git/"
".gitignore"
"node_modules/"
".DS_Store"
"*.log"
".env"
".env.local"
"*.swp"
"*.tmp"
"tests/coverage/"
"tests/bin/"
"wordpress-dev/"
"*.md"
"composer.lock"
"package-lock.json"
)
# Define which directories to deploy
DEPLOY_DIRS=(
"includes"
"templates"
"assets"
)
# Define which root files to deploy
DEPLOY_FILES=(
"hvac-community-events.php"
"README.txt"
"index.php"
)