set migrations volume
This commit is contained in:
parent
98936a066b
commit
1b1c4ec7da
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -17,6 +17,10 @@ data/dbadmin/*
|
||||||
data/pgadmin/*
|
data/pgadmin/*
|
||||||
!data/pgadmin/.placeholder
|
!data/pgadmin/.placeholder
|
||||||
|
|
||||||
|
# ignore forest volumes
|
||||||
|
data/forest/migrations/*
|
||||||
|
!data/forest/migrations/.placeholder
|
||||||
|
|
||||||
# ignore osmtile postgresql volume
|
# ignore osmtile postgresql volume
|
||||||
data/osmtile/*
|
data/osmtile/*
|
||||||
!data/osmtile/.placeholder
|
!data/osmtile/.placeholder
|
||||||
|
|
|
@ -31,6 +31,8 @@ services:
|
||||||
- "db"
|
- "db"
|
||||||
build: ./src/forest
|
build: ./src/forest
|
||||||
image: forest:latest
|
image: forest:latest
|
||||||
|
volumes:
|
||||||
|
- "./data/forest/migrations:/app/migrations"
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
env_file:
|
env_file:
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from flask.cli import FlaskGroup
|
from flask.cli import FlaskGroup
|
||||||
from forest import app, db
|
from app import app, db
|
||||||
from forest.models import User
|
from models import User
|
||||||
|
|
||||||
from flask_migrate import Migrate
|
from flask_migrate import Migrate
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue