docker backup and restore db

This commit is contained in:
tinpee
2016-10-19 06:54:54 +07:00
parent 1c6a8c83ec
commit 423e6e63b1
4 changed files with 40 additions and 9 deletions

View File

@@ -1,4 +1,9 @@
#!/bin/bash
if [ ! -f /src/db/cards.db ]; then
mkdir -p /src/db
cp cards-jwasham.db /src/db/cards.db
fi
export CARDS_SETTINGS=/src/config.txt
gunicorn --bind 0.0.0.0:8000 flash_cards:app