Install Flask and serve index.html
This commit is contained in:
parent
ba63fcaf01
commit
026913013a
1
client/build/index.html
Normal file
1
client/build/index.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hello world
|
|
@ -1,3 +1,12 @@
|
||||||
import socket
|
from flask import Flask
|
||||||
import sys
|
from flask_cors import CORS
|
||||||
import time
|
|
||||||
|
build_folder = '../client/build'
|
||||||
|
app = Flask(__name__, static_folder=build_folder, static_url_path='')
|
||||||
|
CORS(app)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def index():
|
||||||
|
return app.send_static_file('index.html')
|
||||||
|
|
||||||
|
app.run()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user