Restore verified programmer archive with search, provenance and legacy URLs
Build and deploy / deploy (push) Successful in 1m5s
Build and deploy / deploy (push) Successful in 1m5s
This commit is contained in:
1 parent
089b949f4d
commit
681502465a
82 files changed
+8142
-5566
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import http.server,os,json,functools
|
||||
from pathlib import Path
|
||||
r=Path(__file__).resolve().parents[1]
|
||||
handler=functools.partial(http.server.SimpleHTTPRequestHandler,directory=str(r/'web/out'))
|
||||
s=http.server.ThreadingHTTPServer(('127.0.0.1',0),handler)
|
||||
(r/'.local-service.json').write_text(json.dumps(dict(pid=os.getpid(),port=s.server_port,url='http://127.0.0.1:'+str(s.server_port)),indent=2))
|
||||
s.serve_forever()
|
||||
Reference in new issue
Block a user