Plateformes

Guides de déploiement : VPS Ubuntu + Nginx + systemd (principal), Docker.

VPS Ubuntu + Nginx + systemd

Recommandé pour héberger une app BPM sur un serveur dédié.

Étape 1 — Installer BPM sur le serveur

Le dépôt est open source (Blueprint-Modular/blueprint-modular). Utilisez pip install blueprint-modular (PyPI) pour installer BPM sur le serveur. Pour contribuer : cloner le dépôt puis pip install -e ..

python3 -m venv .venv
source .venv/bin/activate
pip install blueprint-modular

Créez ensuite un app.py (ou utilisez bpm init) dans un répertoire de déploiement, par ex. /var/www/blueprint-modular, et pointez WorkingDirectory vers ce dossier (voir Étape 2).

Étape 2 — Configurer systemd

Créer /etc/systemd/system/blueprint-modular.service :

[Unit]
Description=Blueprint Modular  —  app BPM
After=network.target

[Service]
User=www-data
WorkingDirectory=/var/www/blueprint-modular
Environment="PATH=/var/www/blueprint-modular/.venv/bin"
ExecStart=/var/www/blueprint-modular/.venv/bin/python -m bpm.cli run app.py --port 8501 --host 127.0.0.1
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Puis : systemctl daemon-reload, systemctl enable blueprint-modular, systemctl start blueprint-modular.

Étape 3 — Configurer Nginx (reverse proxy)

Vhost Nginx qui proxy vers http://127.0.0.1:8501. Voir deploy/nginx.conf ou exemples dans le repo.

Étape 4 — SSL avec Certbot

certbot --nginx -d votre-domaine.com

Étape 5 — Déployer les mises à jour

Avec PyPI : source .venv/bin/activate && pip install --upgrade blueprint-modular && systemctl restart blueprint-modular. Si vous déployez depuis le dépôt (accès requis) : git pull puis redémarrage, ou deploy/deploy-from-git.sh.

Docker

Dockerfile minimal :

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8501
CMD ["python", "-m", "bpm.cli", "run", "app.py", "--port", "8501", "--host", "0.0.0.0"]

docker-compose.yml avec Nginx (optionnel) : reverse proxy + SSL. Voir exemples dans le repo.

Commandes : docker build -t bpm-app ., docker run -p 8501:8501 bpm-app.

Il n'existe pas de plateforme « BPM Cloud » pour l'instant.

Et maintenant ?

Une question ? Consultez la FAQ et la Ce qu'il reste à faire.