Back to Tutorials

Deploying a Streamlit App

20 minIntermediate

What you'll learn: Learn how to connect your Streamlit applications and deploy them directly on MyFolioHub.

1

Prepare Your Streamlit App

3 min

Ensure your Streamlit app is working locally. Create a requirements.txt file listing all Python dependencies. Push your code to GitHub in a public repository.

2

Connect GitHub Repository

2 min

In MyFolioHub, click "Add Application" and select "Streamlit App". Connect your GitHub account and authorize MyFolioHub to access your repositories.

3

Select Repository and Branch

2 min

Choose the repository containing your Streamlit app and select the branch to deploy from (usually "main" or "master"). MyFolioHub will auto-detect if it's a Streamlit app.

4

Configure Deployment Settings

3 min

Set environment variables if needed (API keys, database URLs). Configure the Python version and any build commands. Review the requirements.txt settings.

5

Deploy and Monitor

3 min

Click "Deploy" and watch the deployment progress in real-time. Your app will be available at a unique URL within minutes. Set up automatic deployments from GitHub pushes.

6

Optimize and Share

2 min

Test your deployed app. Share the URL on your portfolio. Configure custom domain if desired. Monitor usage and performance metrics.

💡 Pro Tips

  • Requirements.txt: Keep dependencies minimal and specify versions to ensure reproducibility.
  • Streamlit config: Use .streamlit/config.toml to customize UI settings and theme.
  • Auto-deploy: Enable automatic deployments to push updates live as soon as you push to GitHub.
Deploying a Streamlit App | MyFolioHub Tutorials