kopia lustrzana https://github.com/piku/piku
Tweaks
rodzic
9cf8c59951
commit
03a7496f45
|
@ -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)))
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue