33800 Docs

← Retour

Task : Déploiement hellocar-public en PROD

Date début : 09-12-2024 00:50 Date fin : 09-12-2024 01:10 Statut : ✅ Terminé


Résumé

Déploiement du site public HelloCar (Qwik) en production avec un serveur Node.js personnalisé.


Configuration déployée

Élément Valeur
Container hellocar-public-prod
Image hellocar-public:prod
Port 4501
Framework Qwik + Node.js
Domaine (après Nginx) hellocar-public-prod.33800.nowhere84.com

Variables d'environnement

Variable Valeur
NODE_ENV production
PUBLIC_PORT 4501
API_URL http://prod-portainer.local:4510
TZ Europe/Paris

Fichiers créés/modifiés

  1. entry.bun.ts - Serveur Node.js personnalisé pour Qwik

    • Middleware Qwik City
    • Serveur de fichiers statiques
    • Chemin : /tmp/hellocar/apps/public/src/entry.bun.ts
  2. package.json - Scripts ajoutés

    • build.server : build SSR avec entry.bun.ts
    • serve : lancement du serveur
  3. Dockerfile.public - Image Docker

    • Base : node:20-slim
    • Build : pnpm + bun (pour le build Qwik)
    • Runtime : Node.js

Secrets mis à jour


Vérifications


Services déployés

Service Port Status
hellocar-api-prod 4510 🟢 Running
hellocar-public-prod 4501 🟢 Running

Backlog ajouté


Prochaines étapes