Browse Source

Remove static serving of files

master
David Larlet 5 years ago
parent
commit
aa746ed61f
No known key found for this signature in database
2 changed files with 0 additions and 18 deletions
  1. 0
    9
      cache.py
  2. 0
    9
      site.py

+ 0
- 9
cache.py View File

@@ -4,9 +4,7 @@ import codecs
import fnmatch
import hashlib
import os
import socketserver
from dataclasses import dataclass
from http.server import SimpleHTTPRequestHandler
from pathlib import Path
from time import perf_counter

@@ -143,13 +141,6 @@ def new(url):
return md_line


@cli
def serve():
httpd = socketserver.TCPServer(("larlet.test", 8001), SimpleHTTPRequestHandler)
print("Serving at http://larlet.test:8001/david/cache/")
httpd.serve_forever()


@wrap
def perf_wrapper():
start = perf_counter()

+ 0
- 9
site.py View File

@@ -4,12 +4,10 @@ import codecs
import fnmatch
import locale
import os
import socketserver
from collections import namedtuple
from dataclasses import dataclass
from datetime import date, datetime
from html import escape
from http.server import SimpleHTTPRequestHandler
from operator import attrgetter
from pathlib import Path
from time import perf_counter
@@ -249,13 +247,6 @@ def feed():
open(DAVID / "log" / "index.xml", "w").write(content)


@cli
def serve():
httpd = socketserver.TCPServer(("larlet.test", 8001), SimpleHTTPRequestHandler)
print("Serving at http://larlet.test:8001/david/")
httpd.serve_forever()


@wrap
def perf_wrapper():
start = perf_counter()

Loading…
Cancel
Save