Sebastián Ramírez
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
5 additions and
2 deletions
-
backend/Dockerfile
-
backend/README.md
-
backend/scripts/prestart.sh
|
|
@ -1,4 +1,4 @@ |
|
|
|
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10 |
|
|
|
FROM python:3.10 |
|
|
|
|
|
|
|
WORKDIR /app/ |
|
|
|
|
|
|
|
|
|
@ -155,7 +155,7 @@ If you don't want to use migrations at all, uncomment the lines in the file at ` |
|
|
|
SQLModel.metadata.create_all(engine) |
|
|
|
``` |
|
|
|
|
|
|
|
and comment the line in the file `prestart.sh` that contains: |
|
|
|
and comment the line in the file `scripts/prestart.sh` that contains: |
|
|
|
|
|
|
|
```console |
|
|
|
$ alembic upgrade head |
|
|
|
|
|
@ -1,5 +1,8 @@ |
|
|
|
#! /usr/bin/env bash |
|
|
|
|
|
|
|
set -e |
|
|
|
set -x |
|
|
|
|
|
|
|
# Let the DB start |
|
|
|
python app/backend_pre_start.py |
|
|
|
|
|
|
|