Hello everybody!
Does streamlit support custom domain name of apps? After deploying an app instead of having share.streamlit.io/gitRepo can I have my own domain name? Thanks!
Hello everybody!
Does streamlit support custom domain name of apps? After deploying an app instead of having share.streamlit.io/gitRepo can I have my own domain name? Thanks!
You can deploy your app on heroku.com and heroku has an option to use a custom domain in settings. To deploy an app on heroku you have to add two files to your repo on github.
setup.sh
mkdir -p ~/.streamlit/
echo "
[server]\n
headless = true\n
port = $PORT\n
enableCORS = false\n
\n
" > ~/.streamlit/config.toml
Procfile
web: sh setup.sh && streamlit run YourAppNameHere.py
Just change the app name in the Procfile. The rest is a copy paste
MaxMnemo
Huge thank you! You are my life-saver!
Any idea how I can setup the secrets.toml (has passwords) file from streamlit to be read in heruko without pushing it in git as it has sensitive info? I saw that in heruko there is config vars where I can setup sensitive variables but I was wondering if there is a way to directly take it secrets.toml
Hi @ngocuong0105 ,
you can you Heroku environment variables to store the secrets
Configuration and Config Vars | Heroku Dev Center
and then read them within streamlit, like this
import os
DB_PSSWD = os.environ.get('DB_PSSWD')
Thanks,
Akshansh
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.