Skip to content

Commit

Permalink
chore: remove useless migrate done by startup.sh (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Jan 10, 2025
1 parent 5ce9b0d commit ff4a69a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions update-ciso-assistant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,4 @@ docker rmi "$BACKEND_IMAGE" "$FRONTEND_IMAGE" 2>/dev/null

# Start the containers
docker compose up -d

# Wait for the database to be ready
echo "Giving some time for the database to be ready, please wait ..."
sleep 50

# Apply migrations
BACKEND_CONTAINER=$(docker ps --filter "ancestor=$BACKEND_IMAGE" --format "{{.Names}}")
docker compose exec "$BACKEND_CONTAINER" poetry run python manage.py migrate
echo "CISO assistant updated successfully"

0 comments on commit ff4a69a

Please sign in to comment.