Bladeren bron

Remove static serving of files

master
David Larlet 5 jaren geleden
bovenliggende
commit
aa746ed61f
Geen bekende sleutel gevonden voor deze handtekening in de database
2 gewijzigde bestanden met toevoegingen van 0 en 18 verwijderingen
  1. 0
    9
      cache.py
  2. 0
    9
      site.py

+ 0
- 9
cache.py Bestand weergeven

@@ -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 Bestand weergeven

@@ -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()

Laden…
Annuleren
Opslaan