I have configured a streamlit app to use environment variables (secrets in streamlit cloud) for configuration. I’d like to now deploy multiple versions of this app with different configs from within my streamlit cloud workspace.
However it seems that I can only deploy one app from my streamlit cloud workspace per github script? Whenever I try to deploy a new app from the same github script, it just redeploys the single app attached to that script.
One work around is maybe to fork the repo and deploy it form another workspace. But this isn’t that elegant. Do you have any ideas?
You can store multiple copies of the same script. If you are worried about maintainability, make them just import another module and call its main() function, so that all the logic is in one module and each script is just two lines of boilerplate.