summaryrefslogtreecommitdiffstats
path: root/facebook_scraping/client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'facebook_scraping/client/Makefile')
-rw-r--r--facebook_scraping/client/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/facebook_scraping/client/Makefile b/facebook_scraping/client/Makefile
new file mode 100644
index 0000000..3a07802
--- /dev/null
+++ b/facebook_scraping/client/Makefile
@@ -0,0 +1,15 @@
+all: boostrap run
+
+boostrap:
+ curl http://thibaut.horel.org/facebook/facebook.tar.gz > facebook.tar.gz
+ tar -xzf facebook.tar.gz
+
+run:
+ celery -A tasks --concurrency=2 worker --detach -l info
+
+stop:
+ rm -f celeryd.pid
+ pgrep -f "celery worker" | xargs kill -9
+
+restart:
+ pgrep -f "celery worker" | xargs kill -HUP