kopia lustrzana https://github.com/piku/piku
Tweaks
rodzic
9cf8c59951
commit
03a7496f45
|
@ -1,10 +1,14 @@
|
||||||
import os
|
import os
|
||||||
from bottle import app, route
|
from bottle import app, get
|
||||||
|
|
||||||
@route("/")
|
@get("/")
|
||||||
def default():
|
def default():
|
||||||
table = ['<table border="0">']
|
table = ['<table border="0">']
|
||||||
for k, v in os.environ.iteritems():
|
for k, v in os.environ.iteritems():
|
||||||
table.append('<tr><th>%s</th><td>%s</td></tr>' % (k, v))
|
table.append('<tr><th>%s</th><td>%s</td></tr>' % (k, v))
|
||||||
table.append('</table>')
|
table.append('</table>')
|
||||||
return '\n'.join(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
|
set -o noglob
|
||||||
local START_OPTS=" \
|
local START_OPTS=" \
|
||||||
--chdir $PIKU_ROOT \
|
--chdir $PIKU_ROOT \
|
||||||
--emperor $ENABLED_CONFIGS_DIR/*.ini \
|
--emperor $ENABLED_CONFIGS_DIR \
|
||||||
--pidfile $PIDFILE \
|
--pidfile $PIDFILE \
|
||||||
--daemonize $RUN/$VERSION-emperor.log \
|
--daemonize $RUN/$VERSION-emperor.log \
|
||||||
--enable-threads
|
--enable-threads
|
||||||
|
|
Ładowanie…
Reference in New Issue