diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index e69de29..0000000 diff --git a/walle_server.py b/walle_server.py index bcb556e..0426980 100644 --- a/walle_server.py +++ b/walle_server.py @@ -6,19 +6,12 @@ import codecs import glob import os -production = True if os.environ.get('NODE_ENV','') == 'production' else False +production = False if os.environ.get('NODE_ENV','') == 'development' else True xmlDir = 'public/' if production else 'build/' -# from flask_cors import CORS, cross_origin -# CORS(app) -# @app.route('/') -# def walle_index(): -# return app.send_static_file('index.html') - - -# @app.route('/api/test') -# def walle_test(): -# return "test" +@app.route('/') +def walle_index(): + return app.send_static_file('index.html') @app.route('/api/morph') def walle_morph(): @@ -42,6 +35,9 @@ def walle_xmlfiles(): xml_files = map(os.path.basename,glob.glob(xmlDir+'*.xml')) return json.dumps(xml_files) +# from flask_cors import CORS, cross_origin +# CORS(app) + # hmr streaming # import requests # from flask import Response,stream_with_context