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