]> git.parisson.com Git - mezzo.git/commitdiff
Add crontab commands
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 12:13:48 +0000 (13:13 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 12:13:48 +0000 (13:13 +0100)
bin/poll_twitter.sh [new file with mode: 0644]
docker-compose.yml
etc/crontab

diff --git a/bin/poll_twitter.sh b/bin/poll_twitter.sh
new file mode 100644 (file)
index 0000000..cfa0d03
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+docker-compose run app python /srv/app/manage.py poll_twitter --force
index 9db6a0e81b2588b4dba46d6620a676c4e2c8776e..0e74afc79a99eae071b85414a9cef579cca9b927 100644 (file)
@@ -71,19 +71,3 @@ nginx:
     - var
   links:
     - app
-# 
-# cron:
-#   image: panubo/cron
-#   volumes:
-#     - ./etc/crontab:/crontab
-#   volumes_from:
-#     - var
-#     - app
-#     - db
-#   links:
-#     - app
-#     - db
-#   environment:
-#     - TZ=Europe/Paris
-#     - SMTP_HOST=smtp.ircam.fr
-#     - SMTP_PORT=25
index 203645a1abffff3feadd186a2dd1ebb07392009a..5413b26cd2df4c051194554f19321e46f55ddacb 100644 (file)
@@ -1 +1,3 @@
-#* * * * * touch /srv/backup/test
+0    */6  * * *  push.sh >> $LOG/push.log 2>&1
+*/10 *           * * *  poll_twitter.sh >> $LOG/pull_twitter.log 2>&1
+#0,30 *    * * *  upgrade.sh >> $LOG/vertigo-upgrade.log 2>&1