grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Serve all static files from /static and handle it from go instead of passing it to python. Fixes HGKEEPER-7
2020-04-24, Gary Kramlich
fbcab4551b60
file is
Executable
Serve all static files from /static and handle it from go instead of passing it to python. Fixes HGKEEPER-7
#!/usr/bin/env python3
config
=
b
'{{.HGWEB_CONFIG}}'
from
mercurial
import
demandimport
;
demandimport
.
enable
()
from
mercurial.hgweb
import
hgweb
,
wsgicgi
application
=
hgweb
(
config
)
wsgicgi
.
launch
(
application
)