diff options
author | Frederick Muriuki Muriithi | 2021-12-22 11:49:30 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-12-22 11:49:30 +0300 |
commit | 2f56ee37183938270197d9bd968648e65584513c (patch) | |
tree | 195c6ca08188a61d1669403c3109de8a96427a7a /issues/deploy.gmi | |
parent | 512bc12aaac7189253a62b2be105472a34821263 (diff) | |
parent | be16a6a7f1a7e2dfa074e858c26ff6a9b6aa86de (diff) | |
download | gn-gemtext-2f56ee37183938270197d9bd968648e65584513c.tar.gz |
Merge branch 'main' of github.com:genenetwork/gn-gemtext-threads
Diffstat (limited to 'issues/deploy.gmi')
-rw-r--r-- | issues/deploy.gmi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/issues/deploy.gmi b/issues/deploy.gmi new file mode 100644 index 0000000..94d73ec --- /dev/null +++ b/issues/deploy.gmi @@ -0,0 +1,26 @@ +# Handle Configuration Files + +How we handle our configuration is a mess; and this makes deployment a +hassle. In genenetwork2, our configs live in different places, and it +takes some fiddling tinged with a bit of domain (gn2) knowledge to +work out what setting live where. With the introduction of blueprints +in our code-base, this duplication became a necessary evil because +most of the settings QC checks happen in a "utility/tools.py" which +unfortunately imports the "app" object. This import leads to circular +imports whenever we use blueprints. Unfortunately, a huge chunk of +the code base uses "utility/tools.py" to get configuration +settings; and removing this would make gn2 as is disfunctional. + +# Tags + +* assigned: bonfacem + +# Notes + +Here's an example of how to use json as our settings: + +=> https://stackoverflow.com/questions/15122312/how-to-import-from-config-file-in-flask + +Here's Flask's official documentation on handling configuration: + +=> https://flask.palletsprojects.com/en/1.1.x/config/ |