From 4cdf0ce17e173e512ee86c63a3b5ead2a620a2b2 Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 5 Sep 2024 16:07:59 +0200 Subject: [PATCH] fix --- bin/migrate | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/migrate b/bin/migrate index bce5e525182dc..2f2aa49ed749b 100755 --- a/bin/migrate +++ b/bin/migrate @@ -2,10 +2,10 @@ set -e SCRIPT_DIR=$(dirname "$(readlink -f "$0")") -ls $SCRIPT_DIR -ls $SCRIPT_DIR/../rust -ls $SCRIPT_DIR/../rust/bin -bash $SCRIPT_DIR/../rust/bin/migrate-cyclotron +# NOTE when running in docker, rust might not exist so we need to check for it +if [ -d "$SCRIPT_DIR/../rust" ]; then + bash $SCRIPT_DIR/../rust/bin/migrate-cyclotron +fi python manage.py migrate python manage.py migrate_clickhouse