update pour test
This commit is contained in:
parent
747a938ef6
commit
15388a8408
@ -13,10 +13,10 @@ services:
|
|||||||
- PORT=8082
|
- PORT=8082
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
# volumes:
|
||||||
- backend_server_app:/app # Utiliser un volume nommé explicitement
|
# - backend_server_app:/app # Utiliser un volume nommé explicitement
|
||||||
working_dir: /app
|
# working_dir: /app
|
||||||
command: sh -c "npm install && node app.js"
|
# command: sh -c "npm install && node app.js"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
@ -40,8 +40,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
volumes:
|
#volumes:
|
||||||
backend_server_app:
|
# backend_server_app:
|
||||||
name: backend_server_app # Nommer explicitement le volume
|
# name: backend_server_app # Nommer explicitement le volume
|
||||||
db_data_new:
|
# db_data_new:
|
||||||
name: db_data_new # Nommer explicitement le volume
|
# name: db_data_new # Nommer explicitement le volume
|
||||||
|
|||||||
4
up.sh
4
up.sh
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /app/manga-backend-server
|
cd /app
|
||||||
if [ -d ".git" ]; then
|
if [ -d ".git" ]; then
|
||||||
echo "Updating repository..."
|
echo "Updating repository..."
|
||||||
git pull origin main
|
git pull origin main
|
||||||
else
|
else
|
||||||
echo "Cloning repository..."
|
echo "Cloning repository..."
|
||||||
git clone http://lab.canguidev.fr/cangui/manga-backend-server.git
|
git clone http://lab.canguidev.fr/cangui/manga-backend-server.git .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Supprimer les fichiers inutiles pour l'application
|
# Supprimer les fichiers inutiles pour l'application
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user