Make util scripts work on both docker-compose v1 and v2
This commit is contained in:
@@ -2,5 +2,8 @@
|
||||
|
||||
# Run all pending migrations
|
||||
|
||||
set -e
|
||||
. "${BASH_SOURCE%/*}/common.sh"
|
||||
|
||||
./utils/reload.sh
|
||||
docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db upgrade"
|
||||
docker exec "$(container app)" sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db upgrade"
|
||||
|
||||
Reference in New Issue
Block a user