Ok so some such line as this was necessary early on in the .wsgi file,   os.chdir("/home/nutra/public_html/api")
  However now I'm hitting a permissions error deep in the postgres driver Library code, I don't know if it's trying to write a log file or bind an HTTP port, but this is the new stacktrace:   port: 20000
PermissionError(13, 'Permission denied')
  File "/home/nutra/public_html/api/flask.wsgi", line 21, in <module>
    host="127.0.0.1", port=port, debug=True,
  File "/usr/local/python3.7/lib/python3.7/site-packages/flask/app.py", line 990, in run
    run_simple(host, port, self, **options)
  File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/serving.py", line 1008, in run_simple
    run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
  File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/_reloader.py", line 339, in run_with_reloader
    sys.exit(reloader.restart_with_reloader())
  File "/usr/local/python3.7/lib/python3.7/site-packages/werkzeug/_reloader.py", line 183, in restart_with_reloader
    exit_code = subprocess.call(args, env=new_environ, close_fds=False)
  File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 339, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/local/python3.7/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)