33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Deployment script for Email Alerts Application updates
|
|
# This script helps deploy the fixed ZohoClient code
|
|
|
|
echo "🚀 Deploying Email Alerts Application updates..."
|
|
|
|
# Files that were updated:
|
|
echo "📝 Updated files:"
|
|
echo " - zoho_client.py (fixed days_back parameter)"
|
|
echo " - config.json (removed hardcoded credentials)"
|
|
echo " - test_zoho_connection.py (new test script)"
|
|
|
|
echo ""
|
|
echo "✅ Code is ready for deployment!"
|
|
echo ""
|
|
echo "📋 Deployment checklist:"
|
|
echo "1. Upload the updated files to your server"
|
|
echo "2. Restart the application on the server"
|
|
echo "3. Test the connection using the web interface"
|
|
echo ""
|
|
echo "🔧 Key changes made:"
|
|
echo " - Fixed ZohoClient.fetch_emails() to accept days_back parameter"
|
|
echo " - Removed hardcoded credentials from config.json"
|
|
echo " - Users can now input credentials through the web interface"
|
|
echo ""
|
|
echo "🧪 Test the connection after deployment:"
|
|
echo " - Go to the web interface"
|
|
echo " - Enter credentials: projects@manaknightdigital.com / 4o%!sbk\$(3!>@#567!!"
|
|
echo " - Click 'Test Connection'"
|
|
echo " - Should show 'Connection successful!'"
|
|
echo ""
|
|
echo "🎯 The days_back parameter error should now be resolved!" |