upskill-event-manager/wordpress-dev/bin/direct-server-upload.sh

38 lines
No EOL
1.3 KiB
Bash
Executable file

#!/bin/bash
#
# Direct Server Upload Script
# This script connects directly to the server to upload files
#
cd /Users/ben/dev/upskill-event-manager/wordpress-dev
# Connect to the server
echo "Connecting to the server..."
echo "Once connected, run these commands:"
echo
echo "1. Create simple-installer.php:"
echo "-----------------------------------------"
echo "cat > /home/974670.cloudwaysapps.com/uberrxmprk/public_html/simple-installer.php <<'EOF'"
cat simple-installer.php
echo "EOF"
echo
echo "2. Create .env file:"
echo "-----------------------------------------"
echo "cat > /home/974670.cloudwaysapps.com/uberrxmprk/public_html/.env <<'EOF'"
echo "ZOHO_CLIENT_ID=1000.Z0HOF1VMMJ9W2QWSU57GVQYEAVUSKS"
echo "ZOHO_CLIENT_SECRET=36913615664649dbf9198884bfd1096f7573c9ce2b"
echo "UPSKILL_STAGING_URL=https://upskill-staging.measurequick.com/"
echo "EOF"
echo
echo "3. Set permissions:"
echo "-----------------------------------------"
echo "chmod 644 /home/974670.cloudwaysapps.com/uberrxmprk/public_html/simple-installer.php"
echo "chmod 640 /home/974670.cloudwaysapps.com/uberrxmprk/public_html/.env"
echo
echo "4. Access the installer at:"
echo "-----------------------------------------"
echo "https://upskill-staging.measurequick.com/simple-installer.php?key=upskill2025"
echo
# Connect to the server
ssh roodev@146.190.76.204