Using a non default config path
Closed this issue · 2 comments
In config.py, it looks like it should be possible to specify a non default config file path by using cli arg --conf
:
Lines 5 to 9 in f7ff563
But when running with gunicorn -w 1 -b 0.0.0.0:8000 satsale:app --conf /path/to/config.toml
, this argument is used by gunicorn which throws an error about an invalid config file.
Maybe I'm not using it correct? How is the --conf
arg suppose to be used?
Hey!
Does adding two hyphens --
escape the gunicorn arguments? Like
gunicorn -w 1 -b 0.0.0.0:8000 satsale:app -- --conf config2.toml
Let me know if that works, I think that is what ive been doing in rust. I might have to update some docs somewhere?
It's working, thanks! I don't think it's documented anywhere, I just found that piece of code in config.py. Might be nice to include in the run section: https://github.com/SatSale/SatSale#run-satsale