diff --git a/server/configmodule.py b/server/configmodule.py index 390b4ea74978671b6c04c3822d02c9440ca3357c..a8fb75a6ed46fab5966543850c8d08422473db46 100644 --- a/server/configmodule.py +++ b/server/configmodule.py @@ -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 diff --git a/server/production.py b/server/production.py new file mode 100644 index 0000000000000000000000000000000000000000..ac64ff46606dbc2193a833ca4ed1a750fde3ad8f --- /dev/null +++ b/server/production.py @@ -0,0 +1,5 @@ +from app import create_app + +if __name__ == "__main__": + app, sio = create_app("configmodule.ProductionConfig") + sio.run(app, port=5000)