Closed batmanscode closed 1 year ago
Dear @batmanscode, if you are deploying on Streamlit Cloud (Streamlit's own servers) they have their own implementation of environment secrets which you may read more about here. If you are deploying on other servers such as Heroku, each platform may have its own way of storing secrets which you will have to enquire about separately. Hope this helps.
Thanks @mkhorasani . As I said it was easy to store the whole yaml as a secret in Streamlit cloud
For heroku if I wanted to save part of the yaml file as a secret I found this library: https://github.com/mkaranasou/pyaml_env
Using a yaml>toml converter it's possible to store the entire yaml configuration as a secret using streamlit cloud, which works as expected.
For deploying from other services, how can leverage environment variables?