Skip to content

Commit

Permalink
Reference script in new layout (which is now closer to original sourc…
Browse files Browse the repository at this point in the history
…e tree)
  • Loading branch information
jeremyestein committed Dec 21, 2024
1 parent 3dd2c9a commit f58f3c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/pixl-python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ FROM pixl_python_base AS hasher_api
ENTRYPOINT ["uvicorn", "hasher.main:app", "--host", "0.0.0.0", "--port", "8000"]

FROM pixl_python_base AS imaging_api
ENTRYPOINT ["/app/scripts/migrate_and_run.sh"]
ENTRYPOINT ["/app/pixl_imaging/scripts/migrate_and_run.sh"]
4 changes: 2 additions & 2 deletions pixl_imaging/scripts/migrate_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
# Run migrations (unless SKIP_ALEMBIC is true) then run the app.

set -eux -o pipefail
cd /app/alembic
cd /app/pixl_imaging/alembic
if [ "${SKIP_ALEMBIC:-false}" = false ]; then
echo "Running alembic migrations"
alembic upgrade head
else
echo "Skipping alembic migrations"
fi

uvicorn pixl_imaging.main:app --host "0.0.0.0" --port 8000
uvicorn pixl_imaging.main:app --host "0.0.0.0" --port 8000

0 comments on commit f58f3c1

Please sign in to comment.