update dépendance
This commit is contained in:
@@ -5,8 +5,11 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY backend/package*.json ./
|
COPY backend/package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies (sans --production pour installer toutes les dépendances)
|
||||||
RUN npm install --production
|
RUN npm install
|
||||||
|
|
||||||
|
# Verify dependencies are installed
|
||||||
|
RUN npm list express > /dev/null 2>&1 || (echo "ERROR: express not installed" && exit 1)
|
||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY backend/src ./src
|
COPY backend/src ./src
|
||||||
|
|||||||
20
README.md
20
README.md
@@ -2,10 +2,28 @@
|
|||||||
|
|
||||||
Panel d'administration web pour serveur Minecraft 1.6.4 NationsGlory.
|
Panel d'administration web pour serveur Minecraft 1.6.4 NationsGlory.
|
||||||
|
|
||||||
|
> 📌 **Note**: Pour un déploiement rapide du serveur complet (Minecraft + Web Admin), consultez le [README principal](../README.md) et utilisez le script `../deploy.sh`.
|
||||||
|
|
||||||
## 🚀 Quick Start
|
## 🚀 Quick Start
|
||||||
|
|
||||||
|
### Déploiement avec le serveur Minecraft (Recommandé)
|
||||||
|
|
||||||
|
Depuis le dossier parent :
|
||||||
```bash
|
```bash
|
||||||
# Démarrage avec Docker Compose
|
cd ..
|
||||||
|
./deploy.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Déploiement standalone
|
||||||
|
|
||||||
|
Si vous souhaitez déployer uniquement l'application web :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Configuration
|
||||||
|
cp .env.example .env
|
||||||
|
nano .env # Configurez SESSION_SECRET et RCON_PASSWORD
|
||||||
|
|
||||||
|
# 2. Démarrage
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
# Le panel sera accessible sur http://localhost:4001
|
# Le panel sera accessible sur http://localhost:4001
|
||||||
|
|||||||
Reference in New Issue
Block a user