Przeglądaj źródła

Remove static serving of files

master
David Larlet 5 lat temu
rodzic
commit
aa746ed61f
Nie znaleziono w bazie danych klucza dla tego podpisu
2 zmienionych plików z 0 dodań i 18 usunięć
  1. 0
    9
      cache.py
  2. 0
    9
      site.py

+ 0
- 9
cache.py Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz