|
|
1 年之前 | |
|---|---|---|
| scripts | 1 年之前 | |
| src | 1 年之前 | |
| tests | 1 年之前 | |
| .gitignore | 1 年之前 | |
| DEPLOYMENT.md | 1 年之前 | |
| Dockerfile | 1 年之前 | |
| PROJECT_STRUCTURE.md | 1 年之前 | |
| README.md | 1 年之前 | |
| SETUP_MANUAL.md | 1 年之前 | |
| __init__.py | 1 年之前 | |
| app.py | 1 年之前 | |
| config.py | 1 年之前 | |
| docker-compose.yml | 1 年之前 | |
| env.example | 1 年之前 | |
| render.yaml | 1 年之前 | |
| requirements-prod.txt | 1 年之前 | |
| requirements.txt | 1 年之前 | |
| wsgi.py | 1 年之前 |
debug=True et localhost en productionrequirements-prod.txt optimiséVérifier Docker
docker --version
docker-compose --version
Configurer les variables d'environnement
cp env.example .env
# Éditer .env avec vos vraies valeurs
Créer les dossiers nécessaires
mkdir uploads data
Lancer avec Docker Compose
docker-compose up -d
Installer Docker sur votre VPS
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
Cloner et déployer
git clone <votre-repo>
cd assistant_ai
docker-compose up -d
# Obligatoires
SERPAPI_KEY=your_serpapi_key_here
WIKI_USERNAME=your_wiki_username
WIKI_PASSWORD=your_wiki_password
# Optionnelles (valeurs par défaut)
FLASK_ENV=production
FLASK_DEBUG=false
FLASK_HOST=0.0.0.0
FLASK_PORT=5000
OLLAMA_HOST=http://ollama:11434
UPLOAD_FOLDER=uploads
MAX_CONTENT_LENGTH=16777216
docker-compose logs -fPour des instructions complètes, consultez :
SETUP_MANUAL.md - Guide de setup manuelDEPLOYMENT.md - Guide de déploiement completPROJECT_STRUCTURE.md - Structure du projet