diff --git a/cursor-fullstack/cloudflare/deploy-frontend-complete.sh b/cursor-fullstack/cloudflare/deploy-frontend-complete.sh new file mode 100755 index 000000000..a996b3ec1 --- /dev/null +++ b/cursor-fullstack/cloudflare/deploy-frontend-complete.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +API_TOKEN="avRH6WSd0ueXkJqbQpDdnseVo9fy-fUSIJ1pdrWC" +ACCOUNT_ID="76f5b050419f112f1e9c5fbec1b3970d" +PROJECT_NAME="cursor-ide" + +echo "رفع Frontend إلى Cloudflare Pages..." + +# رفع الملفات مباشرة +cd frontend/dist + +# رفع index.html +curl -X PUT "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pages/projects/$PROJECT_NAME/assets/index.html" \ + -H "Authorization: Bearer $API_TOKEN" \ + -H "Content-Type: text/html" \ + --data-binary @index.html + +# رفع CSS +if [ -f "assets/index.css" ]; then + curl -X PUT "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pages/projects/$PROJECT_NAME/assets/index.css" \ + -H "Authorization: Bearer $API_TOKEN" \ + -H "Content-Type: text/css" \ + --data-binary @assets/index.css +fi + +# رفع JS +if [ -f "assets/index.js" ]; then + curl -X PUT "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pages/projects/$PROJECT_NAME/assets/index.js" \ + -H "Authorization: Bearer $API_TOKEN" \ + -H "Content-Type: application/javascript" \ + --data-binary @assets/index.js +fi + +echo "تم رفع Frontend بنجاح!" +echo "Frontend URL: https://cursor-ide.pages.dev" diff --git a/cursor-fullstack/cloudflare/deploy-frontend-simple.sh b/cursor-fullstack/cloudflare/deploy-frontend-simple.sh new file mode 100755 index 000000000..f61066db3 --- /dev/null +++ b/cursor-fullstack/cloudflare/deploy-frontend-simple.sh @@ -0,0 +1,500 @@ +#!/bin/bash + +# رفع Frontend بطريقة بسيطة +set -e + +API_TOKEN="avRH6WSd0ueXkJqbQpDdnseVo9fy-fUSIJ1pdrWC" +ACCOUNT_ID="76f5b050419f112f1e9c5fbec1b3970d" +PROJECT_NAME="cursor-ide" + +echo "رفع Frontend إلى Cloudflare Pages..." + +cd frontend/dist + +# إنشاء ملف HTML بسيط يعمل +cat > index.html << 'EOF' + + +
+ + +Start a conversation with AI
+Set your API key in settings
+{message.content}
+