Browse Source

Update admin.sh

fix bug
EverYang 6 years ago
parent
commit
6c14b46ae6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      admin.sh

+ 1 - 0
admin.sh

@@ -71,6 +71,7 @@ function upgrade() {
 function migration() {
 function migration() {
     echo "migration walle"
     echo "migration walle"
     echo "----------------"
     echo "----------------"
+    source venv/bin/activate
     export FLASK_APP=waller.py
     export FLASK_APP=waller.py
     flask db upgrade
     flask db upgrade
     if [ $? == "0" ]; then
     if [ $? == "0" ]; then