--- a/.hgignore Fri Dec 16 20:10:31 2011 +0100
+++ b/.hgignore Mon Dec 19 00:30:04 2011 +0100
@@ -44,4 +44,6 @@
*.orig
syntax: regexp
-^tweetcast/nodejs/node_modules$
\ No newline at end of file
+^tweetcast/nodejs/node_modules$
+syntax: regexp
+^tweetcast/server-gevent/server_setup\.py$
\ No newline at end of file
--- a/sbin/sync/sync_live Fri Dec 16 20:10:31 2011 +0100
+++ b/sbin/sync/sync_live Mon Dec 19 00:30:04 2011 +0100
@@ -14,6 +14,7 @@
P config.php
P .htaccess
P limesurvey/***
+P demo/***
EOT
fi
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_tweetcast Mon Dec 19 00:30:04 2011 +0100
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/tweet_live_V$1 ]; then
+ rm -fr ~/tmp/tweet_live_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/tweet_live_V$1
+
+#text2unix ~/tmp/tweet_live_V$1
+
+if [ -d ~/tmp/tweet_live_V$1 ]; then
+ cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/tweetcast/server-gevent iri@www.iri.centrepompidou.fr:/home/polemictweet-nginx/server-gevent
++ core
+P server_setup.py
+EOT
+fi
+
+if [ -d ~/tmp/tweet_live_V$1 ]; then
+ echo "Deleting temp export"
+ rm -fr ~/tmp/tweet_live_V$1;
+fi
+
+#ssh iri@www.iri.centrepompidou.fr sudo apache2ctl restart
--- a/script/stream/recorder_tweetstream.py Fri Dec 16 20:10:31 2011 +0100
+++ b/script/stream/recorder_tweetstream.py Mon Dec 19 00:30:04 2011 +0100
@@ -539,7 +539,7 @@
finally:
add_process_event(type="shutdown", args=stop_args, session_maker=Session)
- utils.get_logger().debug("Done. Exiting.")
+ utils.get_logger().debug("Done. Exiting. " + repr(stop_args))
--- a/tweetcast/server-gevent/server_setup.py Fri Dec 16 20:10:31 2011 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-SQL_CONNECT = 'postgresql://user:pass@hostname/database'
-WEB_PORT = 8888
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tweetcast/server-gevent/server_setup.py.tmpl Mon Dec 19 00:30:04 2011 +0100
@@ -0,0 +1,2 @@
+SQL_CONNECT = 'postgresql://user:pass@hostname/database'
+WEB_PORT = 8888
\ No newline at end of file
--- a/tweetcast/server-gevent/tweetcast.py Fri Dec 16 20:10:31 2011 +0100
+++ b/tweetcast/server-gevent/tweetcast.py Mon Dec 19 00:30:04 2011 +0100
@@ -135,4 +135,6 @@
return ['<h1>Not Found</h1>']
session = Session()
-WSGIServer(('', WEB_PORT), webserver).serve_forever()
\ No newline at end of file
+
+if __name__ == "__main__":
+ WSGIServer(('', WEB_PORT), webserver).serve_forever()
\ No newline at end of file