Skip to content
Snippets Groups Projects
Commit 29d43099 authored by robban64's avatar robban64
Browse files

add: production.py for running in production mode

parent 58220832
No related branches found
No related tags found
No related merge requests found
Pipeline #47113 passed
......@@ -65,12 +65,6 @@ class TestingConfig(Config, LiteTestDbConfig):
USER_LOGIN_LOCKED_EXPIRES = timedelta(seconds=4)
class ProductionConfig(Config):
class ProductionConfig(Config, LiteDevDbConfig):
DEBUG = False
TESTING = False
# HOST = "localhost"
# PORT = 5432
# USER = "postgres"
# PASSWORD = "password"
# DATABASE = "teknik8"
# SQLALCHEMY_DATABASE_URI = "postgresql://" + USER + ":" + PASSWORD + "@" + HOST + ":" + str(PORT) + "/" + DATABASE
from app import create_app
if __name__ == "__main__":
app, sio = create_app("configmodule.ProductionConfig")
sio.run(app, port=5000)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment