Permalink
Browse files

now also running the monolith server

  • Loading branch information...
1 parent a50671e commit b03a40bbf6a09fcc1ac72c3508f673e46df1ea3e @tarekziade tarekziade committed Feb 12, 2013
Showing with 44 additions and 1 deletion.
  1. +5 −1 Makefile
  2. +39 −0 monolith/tests/monolith.ini
View
@@ -28,9 +28,13 @@ test: build
$(BIN)/nosetests -s -d -v --with-coverage --cover-package monolith monolith
testjs: build
- elasticsearch/bin/elasticsearch -p es.pid; sleep 5
+ elasticsearch/bin/elasticsearch -p es.pid
+ bin/pserve --pid-file monolith.pid --daemon monolith/tests/monolith.ini
+ sleep 5
-testacular start --single-run
kill `cat es.pid`
+ kill `cat monolith.pid`
+ rm monolith.pid
elasticsearch:
curl -C - --progress-bar http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$(ES_VERSION).tar.gz | tar -zx
@@ -0,0 +1,39 @@
+[app:main]
+use = egg:monolith
+elasticsearch.hosts = localhost:9998
+
+[server:main]
+use = egg:waitress#main
+host = 0.0.0.0
+port = 9997
+
+# Begin logging configuration
+
+[loggers]
+keys = root, monolith
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = INFO
+handlers = console
+
+[logger_monolith]
+level = INFO
+handlers =
+qualname = monolith
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = INFO
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
+
+# End logging configuration

0 comments on commit b03a40b

Please sign in to comment.