File size: 394 Bytes
d5684b3
 
 
 
 
 
 
 
a4ef0c7
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

include .env

build-postgres:
	docker build -t codepath_project_postgres -f Dockerfile.local.postgres .

run-postgres:
	docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} -e POSTGRES_USER=${POSTGRES_USER} --name ${POSTGRES_DB_NAME} codepath_project_postgres

run-migrations:
	alembic upgrade head

generate-migrations:
	alembic revision --autogenerate -m "$(migration_title)"