-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCONNECT_TO_CLOUDFLARE_NOW.bat
More file actions
91 lines (83 loc) · 2.5 KB
/
CONNECT_TO_CLOUDFLARE_NOW.bat
File metadata and controls
91 lines (83 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
@echo off
title Shahin GRC - Connect to Cloudflare Pages NOW
color 0B
echo.
echo ========================================
echo Connect to Cloudflare Pages
echo Repository: doganlap/shahin-landing
echo ========================================
echo.
echo ✅ GitHub Repository: https://github.com/doganlap/shahin-landing
echo ✅ Code Status: Pushed to master branch
echo ✅ Build: Ready (0.54 MB)
echo.
echo ========================================
echo Cloudflare Pages Setup
echo ========================================
echo.
echo Step 1: Go to Cloudflare Dashboard
echo URL: https://dash.cloudflare.com
echo.
echo Step 2: Create Pages Project
echo - Click: "Pages" in left sidebar
echo - Click: "Create a project"
echo - Click: "Connect to Git"
echo.
echo Step 3: Connect GitHub
echo - Select: "GitHub"
echo - Authorize Cloudflare (browser opens)
echo - Select repository: "doganlap/shahin-landing"
echo - Click: "Begin setup"
echo.
echo Step 4: Configure Build Settings
echo - Project name: shahin-grc-landing
echo - Production branch: master
echo - Framework preset: Vite
echo - Build command: cd landing-page && npm install && npm run build
echo - Build output directory: landing-page/dist
echo - Root directory: / (leave empty)
echo - Node version: 18
echo.
echo Step 5: Set Environment Variables
echo Click "Environment variables" and add:
echo - VITE_API_URL = https://api.shahin-ai.com/api
echo - VITE_FRONTEND_URL = https://www.shahin-ai.com
echo.
echo Step 6: Deploy
echo - Click: "Save and Deploy"
echo - Wait 2-3 minutes for build
echo - Deployment URL: https://shahin-grc-landing.pages.dev
echo.
echo ========================================
echo Opening Cloudflare Dashboard
echo ========================================
echo.
timeout /t 3 /nobreak >nul
start https://dash.cloudflare.com
echo.
echo ✅ Cloudflare Dashboard opened in browser
echo.
echo Follow the steps above to connect your repository.
echo.
echo After deployment:
echo 1. Add custom domain: www.shahin-ai.com
echo 2. Set up Cloudflare Tunnel for backend
echo 3. Configure AI services in backend/.env
echo.
echo ========================================
echo Quick Links
echo ========================================
echo.
echo GitHub Repository:
echo https://github.com/doganlap/shahin-landing
echo.
echo Cloudflare Dashboard:
echo https://dash.cloudflare.com
echo.
echo Cloudflare Pages:
echo https://dash.cloudflare.com/pages
echo.
echo Zero Trust (for Tunnel):
echo https://one.dash.cloudflare.com
echo.
pause