Spaces:
Running
Running
Download check-deployment.sh from axeronis/microfunnel-api: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/check-deployment.sh
- Command line
-
hf download hf://spaces/axeronis/microfunnel-api/check-deployment.sh
-
curl -L -o check-deployment.sh https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/check-deployment.sh
1.55 kB
| # Pre-deployment checklist | |
| echo "π Checking deployment readiness..." | |
| echo "" | |
| # Check if git initialized | |
| if [ ! -d ".git" ]; then | |
| echo "β Git not initialized. Run: git init" | |
| exit 1 | |
| fi | |
| echo "β Git initialized" | |
| # Check critical files exist | |
| files=( | |
| "backend/railway.json" | |
| "backend/Procfile" | |
| "backend/.env.railway.template" | |
| "frontend/vercel.json" | |
| "frontend/.env.vercel.template" | |
| "DEPLOYMENT.md" | |
| ) | |
| for file in "${files[@]}"; do | |
| if [ ! -f "$file" ]; then | |
| echo "β Missing: $file" | |
| exit 1 | |
| fi | |
| done | |
| echo "β All deployment configs present" | |
| # Check .gitignore | |
| if [ ! -f ".gitignore" ]; then | |
| echo "β Missing .gitignore" | |
| exit 1 | |
| fi | |
| echo "β .gitignore exists" | |
| # Check if .env files are gitignored | |
| if git check-ignore backend/.env >/dev/null 2>&1; then | |
| echo "β .env files properly ignored" | |
| else | |
| echo "β οΈ WARNING: .env files not ignored! Add to .gitignore" | |
| fi | |
| # Check backend dependencies | |
| if [ ! -f "backend/requirements.txt" ]; then | |
| echo "β Missing backend/requirements.txt" | |
| exit 1 | |
| fi | |
| echo "β Backend dependencies defined" | |
| # Check frontend dependencies | |
| if [ ! -f "frontend/package.json" ]; then | |
| echo "β Missing frontend/package.json" | |
| exit 1 | |
| fi | |
| echo "β Frontend dependencies defined" | |
| echo "" | |
| echo "π Ready for deployment!" | |
| echo "" | |
| echo "Next steps:" | |
| echo "1. Push to GitHub: git push origin main" | |
| echo "2. Deploy backend to Railway" | |
| echo "3. Deploy frontend to Vercel" | |
| echo "4. Read DEPLOYMENT.md for detailed instructions" | |