pull/1/head
Rui Carmo 2016-03-29 21:41:03 +01:00
rodzic 9cf8c59951
commit 03a7496f45
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -1,10 +1,14 @@
import os
from bottle import app, route
from bottle import app, get
@route("/")
@get("/")
def default():
table = ['<table border="0">']
for k, v in os.environ.iteritems():
table.append('<tr><th>%s</th><td>%s</td></tr>' % (k, v))
table.append('</table>')
return '\n'.join(table)
if __name__ == '__main__':
run(port=int(os.environ.get("PORT",8080)))

Wyświetl plik

@ -58,7 +58,7 @@ do_start()
set -o noglob
local START_OPTS=" \
--chdir $PIKU_ROOT \
--emperor $ENABLED_CONFIGS_DIR/*.ini \
--emperor $ENABLED_CONFIGS_DIR \
--pidfile $PIDFILE \
--daemonize $RUN/$VERSION-emperor.log \
--enable-threads