mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-08 03:28:35 +03:00
added database migrations + soft delete
This commit is contained in:
@@ -17,6 +17,12 @@ cd /src
|
||||
orchestration must be from the console(?)
|
||||
* turn off VPNs if connection to docker is not working
|
||||
|
||||
## Database migrations
|
||||
check https://alembic.sqlalchemy.org/en/latest/tutorial.html#the-migration-environment
|
||||
|
||||
* create migrations with `alembic revision -m "create account table"`
|
||||
* migrate to most recent with `alembic upgrade head`
|
||||
* downgrade with `alembic downgrade -1`
|
||||
|
||||
## Release
|
||||
Copy `.env` and `src/.env` to deployment, along with the contents of `secrets/` including `secrets/orchestration.yaml`.
|
||||
@@ -26,4 +32,5 @@ Then `docker compose up -d`.
|
||||
#### updating packages/app/access
|
||||
If pipenv packages are updated: `pipenv lock --requirements -r > requirements.txt` (manually comment line `-i https://pypi.org/simple`) and then `docker compose down` + `docker compose up --build -d` to build images with new packages.
|
||||
|
||||
New users should be added to the `src/.env` file `ALLOWED_EMAILS` prop
|
||||
New users should be added to the `src/.env` file `ALLOWED_EMAILS` prop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user