💾 Archived View for thebird.nl › gn-gemtext-threads › issues › genenetwork › genenetwork2_configurat… captured on 2023-07-10 at 13:45:23. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-06-16)

🚧 View Differences

-=-=-=-=-=-=-

Genenetwork2 Configurations

Tags

Description

The current way the configuration in Genenetwork2 works is as follows:

From these, `GN2_PROFILE` is the only environment variable that needs to be set up. All the other variables can be set in the settings file.

The file `wqflask/base/webqtlConfig.py` also has some configurations that need to be handled.

The sub-sections that follow will contain more information on variables and what needs to be done

`GN2_PROFILE`-Dependent Environment Variables

`wqflask/utility/tools.py`

This is our biggest pain-point. The following are some actions that can be taken to reduce the pain in this module:

Modules with Routes but no Blueprints

These modules are:

Except for `wqflask/run_gunicorn.py`, each module will have its own Blueprint and then we'll have some top-level Blueprint that import all the others and sets them up. The top-level blueprint will then be registered with the app at the application-creation time.

For `wqflask/run_gunicorn.py`, the route can remain as is, since this is an entry-point module.

`wqflask/wqflask/__init__.py`

Non-Executable Configuration Files

Eschew executable formats (*.py) for configuration files and prefer non-executable formats e.g. *.cfg, *.json, *.conf etc