A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 dev-server.py

View raw Download
text/x-script.python • 320 B
Python script, ASCII text executable
        
            
1
from build import main as BuildStaticSite
2
from flask import Flask, redirect
3
4
app = Flask(__name__)
5
6
@app.route("/")
7
def Index():
8
return """<a href="/build">Rebuild site</a>"""
9
10
@app.route("/build")
11
def Builder():
12
BuildStaticSite()
13
return redirect("/")
14
15
if __name__ == "__main__":
16
app.run("0.0.0.0", 9000)