Date début : 09-12-2024 00:50 Date fin : 09-12-2024 01:10 Statut : ✅ Terminé
Déploiement du site public HelloCar (Qwik) en production avec un serveur Node.js personnalisé.
| É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 |
| Variable | Valeur |
|---|---|
| NODE_ENV | production |
| PUBLIC_PORT | 4501 |
| API_URL | http://prod-portainer.local:4510 |
| TZ | Europe/Paris |
entry.bun.ts - Serveur Node.js personnalisé pour Qwik
/tmp/hellocar/apps/public/src/entry.bun.tspackage.json - Scripts ajoutés
build.server : build SSR avec entry.bun.tsserve : lancement du serveurDockerfile.public - Image Docker
API_URL=http://prod-portainer.local:4510API_URL=http://dev-portainer.local:4510 (parité)docker ps | grep hellocar-public🚗 HelloCar Public running at http://0.0.0.0:4501http://prod-portainer.local:4501| Service | Port | Status |
|---|---|---|
| hellocar-api-prod | 4510 | 🟢 Running |
| hellocar-public-prod | 4501 | 🟢 Running |