Commits

Takumi IINO committed 68c2382

Flaskの代わりにSimpleHTTPServerを利用する

Comments (0)

Files changed (3)

 .PHONY: html serve init
 
+PORT=5000
+
 all: html
 
 html:
 	(source bin/activate; bin/landslide index.rst --embed --destination=index.html)
 
 serve:
-	(source bin/activate; python serve.py)
+	(source bin/activate; python -m SimpleHTTPServer ${PORT})
 
 init:
 	./quickinstall
 
 # setup landslide
 bin/pip install landslide
-bin/pip install flask

serve.py

-from flask import Flask
-from flask import send_file
-
-app = Flask(__name__)
-
-@app.route("/")
-def index():
-    return send_file("index.html")
-
-if __name__  == "__main__":
-    app.run()