Skip to content

Commit cfa77d3

Browse files
authored
Merge pull request #185 from jwlademann/alembic_newer_base_images
Modify alembic function for virtual environment support
2 parents b80a806 + aae0782 commit cfa77d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/add-aliases.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ function fullreset(){
165165

166166
function alembic(){
167167
ex -e SQL_USE_ALEMBIC_USER=yes -e SQL_PASSWORD=superroot -e SQLALCHEMY_POOL_RECYCLE=3600 ${1} \
168-
bash -c 'cd /src && python3 manage.py db '"${@:2}"''
168+
bash -c 'cd /opt/app-root/src && [ -d "$VENV_DIR" ] && source $VENV_DIR/bin/activate;
169+
python3 manage.py db '"${@:2}"''
169170
}
170171

171172
function devenv-help(){

0 commit comments

Comments
 (0)