flatisfy/docker/docker_run.sh
Phyks (Lucas Verney) a9ac5484e0 Rework Docker image and add some doc.
Thanks @bnjbvr for the contribution!

This closes #15.
2017-06-21 15:10:56 +02:00

21 lines
395 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 30 minutes."
sleep 1800
done