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