Im trying to use a config.cfg file in my web app. I have done
app.config.from_envvar('APP_SETTINGS')
Then opened a bash console in the main directory of my site and done
export APP_SETTINGS=config.cfg
but that didnt work so i seperated it and did
export APP_SETTINGS
APP_SETTINGS=config.cfg
But i keep getting this error.
2018-01-13 19:57:55,800: Error running WSGI application
2018-01-13 19:57:55,803: RuntimeError: The environment variable 'APP_SETTINGS' is not set and as such configuration could not be loaded. Set this variable and make it point to a configuration file
What am I doing wrong?