docker-compose build
docker-compose up
docker-compose run web poetry run alembic revision --autogenerate -m "init"
docker-compose run web poetry run alembic upgrade head
docker-compose up pgadmin
Then go to http://localhost:5050/. The credentials are [email protected]
/ admin
. Connect to the server using
the address db
, username postgres
and password postgres
.
cat definitions.json | docker-compose run web poetry run python import_definitions.py
With a Dokku-managed server, figure out the container id using docker container ls
, then:
cat definitions.json | docker exec -i <container-id> /app/.heroku/python/bin/python /app/import_definitions.py
poetry run pytest