diff --git a/app/static/wordfreqapp.db b/app/static/wordfreqapp.db deleted file mode 100644 index c6f3101..0000000 Binary files a/app/static/wordfreqapp.db and /dev/null differ diff --git a/build.sh b/build.sh index e313fce..3b14f39 100755 --- a/build.sh +++ b/build.sh @@ -15,7 +15,7 @@ sudo docker rm EnglishPal sudo docker build -t englishpal . # Run the application -sudo docker run --restart=always -d --name EnglishPal -p 90:80 -v ${DEPLOYMENT_DIR}/app/static/frequency:/app/static/frequency -v ${DEPLOYMENT_DIR}/app/static/:/app/static/ -t englishpal # for permanently saving data +sudo docker run --restart=always -d --name EnglishPal -p 90:80 -v ${DEPLOYMENT_DIR}/app/static/frequency:/app/static/frequency -v ${DEPLOYMENT_DIR}/app/static:/app/static --mount type=volume,src=englishpal-db,target=/app -t englishpal # for permanently saving data # Save space. Run it after sudo docker run sudo docker system prune -a -f diff --git a/requirements.txt b/requirements.txt index 8018227..35eb17c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Flask==2.3.2 +Flask==2.0.3 selenium==3.141.0 PyYAML~=6.0 pony==0.7.16