Skip to content

Commit

Permalink
adds to db migration to init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 19, 2024
1 parent 9bd07bb commit fa7cb6b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ fi

echo "🚢 Build docker images"
docker compose build

echo "📦 Build python packages"
docker compose run --rm app poetry install

echo "🧳 Run database migrations"
docker compose up -d database
docker compose run --rm app sh -c "cd aim/digifeeds/database && poetry run alembic upgrade heads"

echo "🗄️ Load statuses"
docker compose run --rm app sh -c "poetry run python aim/digifeeds/bin/load_statuses.py"



0 comments on commit fa7cb6b

Please sign in to comment.