flatisfy/docker_run.sh
2017-06-21 12:11:29 +02:00

21 lines
393 B
Bash

#!/bin/bash
cd /home/user/app
python -m flatisfy build-data -v --config /flatisfy/config.json
# Run the server in the background.
python -m flatisfy serve --config /flatisfy/config.json &
while true;
do
cd /home/user/weboob
git pull
cd /home/user/app
python -m flatisfy import -v --config /flatisfy/config.json
echo "Done, sleeping for 5 minutes."
sleep 300
done