Spaces:
Sleeping
Sleeping
|
Download DEPLOY_KOYEB.md from mtornani/rooting-future: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/spaces/mtornani/rooting-future/resolve/main/DEPLOY_KOYEB.md
- Command line
-
hf download hf://spaces/mtornani/rooting-future/DEPLOY_KOYEB.md
-
curl -L -o DEPLOY_KOYEB.md https://huggingface.co/spaces/mtornani/rooting-future/resolve/main/DEPLOY_KOYEB.md
2.79 kB
Deploy Rooting Future su Koyeb (Gratis Permanente)
Perché Koyeb?
- Gratis permanente (non trial!)
- Always-on (no cold start)
- PostgreSQL incluso
- 512MB RAM
- Deploy automatico da GitHub
Prerequisiti
- Account GitHub con il repository Rooting Future
- Account Koyeb (gratuito): https://app.koyeb.com/auth/signup
Step 1: Preparazione Repository
Assicurati che questi file siano nel repository:
Procfile # Configurazione Gunicorn
runtime.txt # Versione Python
requirements-koyeb.txt # Dipendenze
Step 2: Crea Account Koyeb
- Vai su https://app.koyeb.com/auth/signup
- Registrati con GitHub (consigliato) o email
- NON serve carta di credito
Step 3: Crea Nuovo Servizio
- Click su "Create Service"
- Seleziona "GitHub" come source
- Autorizza Koyeb ad accedere al tuo repository
- Seleziona il repository
rooting-future - Branch:
main(omaster)
Step 4: Configura Build
- Builder: Buildpack
- Run command: lascia vuoto (usa Procfile)
- Instance type: Free (nano)
Step 5: Configura Environment Variables
Clicca su "Environment variables" e aggiungi:
| Variable | Valore |
|---|---|
GEMINI_API_KEY |
La tua API key di Google AI Studio |
SERPER_API_KEY |
La tua API key di Serper.dev |
TAVILY_API_KEY |
(opzionale) API key Tavily |
SECRET_KEY |
Una stringa casuale lunga (es: my-super-secret-key-12345) |
FLASK_ENV |
production |
PORT |
8000 |
Come ottenere le API Keys:
Gemini API Key (Gratis):
- Vai su https://aistudio.google.com/app/apikey
- Click "Create API Key"
- Copia la chiave
Serper API Key (Gratis 2500 query/mese):
- Vai su https://serper.dev
- Registrati
- Copia la API key dalla dashboard
Step 6: Deploy
- Click "Deploy"
- Attendi 2-5 minuti per il build
- Una volta verde, clicca sul link pubblico
Il tuo URL sarà tipo: https://rooting-future-tuonome.koyeb.app
Step 7: Verifica
- Apri l'URL nel browser
- Dovresti vedere la pagina di attivazione licenza
- Genera una licenza admin e attiva
Troubleshooting
Build fallisce
- Controlla i log di build
- Verifica che
requirements-koyeb.txtsia corretto
App non si avvia
- Controlla i log runtime
- Verifica le environment variables
Errore API Gemini
- Verifica che
GEMINI_API_KEYsia corretta - Controlla i limiti gratuiti di Gemini
Aggiornamenti
Ogni push su GitHub triggera un nuovo deploy automatico!
git add .
git commit -m "Update"
git push
Limiti Free Tier Koyeb
- 1 web service
- 512MB RAM
- 0.1 vCPU
- Sufficiente per uso normale (< 1000 utenti/giorno)
Supporto
Per problemi:
- Koyeb Docs: https://www.koyeb.com/docs
- Koyeb Discord: https://discord.gg/koyeb