File size: 476 Bytes
2f57958
7f39680
9eb16e7
62d3ebf
7f39680
2f57958
7f39680
9eb16e7
7f39680
 
2f57958
ae19b5f
 
 
 
9eb16e7
7f39680
 
62d3ebf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from flask import Flask, send_from_directory
import os

app = Flask(__name__,
            static_folder='static',
            static_url_path='/static',
            template_folder='.')

@app.route('/')
def index():
    return send_from_directory('.', 'index.html')

@app.route('/test')
def test():
    return send_from_directory('.', 'test.html')

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 7860))
    app.run(host='0.0.0.0', port=port, debug=False)