deploy: change file permission
This commit is contained in:
@@ -73,13 +73,15 @@ jobs:
|
|||||||
docker network inspect konstitisyon_network >/dev/null 2>&1 \
|
docker network inspect konstitisyon_network >/dev/null 2>&1 \
|
||||||
|| docker network create konstitisyon_network
|
|| docker network create konstitisyon_network
|
||||||
|
|
||||||
|
echo "==> Initialisation base de données"
|
||||||
|
[ -f database/data.db ] || cp database/data.sample.db database/data.db
|
||||||
|
|
||||||
|
echo "==> Permissions volumes"
|
||||||
|
chown -R 1000:1000 database uploads
|
||||||
|
|
||||||
echo "==> Démarrage Directus"
|
echo "==> Démarrage Directus"
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|
||||||
echo "==> Logs Directus (30s)"
|
|
||||||
sleep 30
|
|
||||||
docker compose logs --tail=50 directus
|
|
||||||
|
|
||||||
echo "==> Vérification santé"
|
echo "==> Vérification santé"
|
||||||
for i in $(seq 1 12); do
|
for i in $(seq 1 12); do
|
||||||
if curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'; then
|
if curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user