feat: major rewrite of the webserver
gets rid of __init__ and runserver in favor of new modular design also introduces db model, first api endpoints, as well as their wrappers
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
"""
|
||||
This script runs the FlaskWebProject application using a development server.
|
||||
Please see README.md for more tips on how to get your server running.
|
||||
"""
|
||||
|
||||
from os import environ
|
||||
from FlaskWebProject import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
HOST = environ.get('SERVER_HOST', 'localhost')
|
||||
try:
|
||||
PORT = int(environ.get('SERVER_PORT', '5555'))
|
||||
except ValueError:
|
||||
PORT = 5555
|
||||
app.run(HOST, PORT)
|
||||
print("runserver.py is obsolete. Please run your server with lewy.py.")
|
||||
Reference in New Issue
Block a user