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