Deploy a Streamlit App to Render for Free
Render hosts a Streamlit app for free from a GitHub repo. Add a requirements.txt, push the project to GitHub, then create a Render web service from that repo with a start command that listens on Render’s port. The free tier sleeps when idle, so the first visit after a quiet spell is slow.
Create requirements.txt
Render installs your app’s libraries from a requirements.txt file in the project folder. You can write it by hand from the imports in your app, but I generate it with the pipreqs package.
pip install pipreqs
Then run pipreqs inside the folder that holds your Streamlit app:
pipreqs --encoding=utf8
It writes a requirements.txt with every library the app imports:
streamlit==1.12.0
Pillow==9.2.0
pipreqs pins the versions installed on your machine. Keep them reasonably current: a years-old pin such as streamlit==1.12.0 may fail to install on the newer Python version a host uses today.
Push the project to GitHub
Render deploys from a Git repository, so the project goes to GitHub first. Create a free GitHub account if you have none, click New on the Repositories tab and give the repo a name, such as digital-resume-render-tutorial.

The app in this example is the one from my tutorial on how to build a digital resume with Python and Streamlit.
Install Git if it is not on your machine yet, open a terminal in the project folder and commit the files:
git init
git add .
git commit -m "initial commit"
Git confirms the commit and lists every file it added:
[master (root-commit) 8d73c2d] initial commit
10 files changed, 184 insertions(+)
create mode 100644 .streamlit/config.toml
create mode 100644 app.py
create mode 100644 assets/CV.docx
create mode 100644 assets/CV.pdf
create mode 100644 assets/demo1.png
create mode 100644 assets/demo2.png
create mode 100644 assets/demo3.png
create mode 100644 assets/profile-pic.png
create mode 100644 requirements.txt
create mode 100644 styles/main.css
Copy the repository URL from GitHub, connect the local folder to it and push. If your local branch is called main rather than master, use main in the push command and later on Render.
git remote add origin https://github.com/your-name/your-repo.git
git push -u origin master
Refresh the repository page on GitHub and the files are there.

Create the web service on Render
A Streamlit app runs on Render as a web service. Create a free account on render.com, click New, choose Web Service and connect your GitHub account. Then pick the repository you just pushed.
The service name becomes part of the URL, for example digital-cv. Keep the default runtime, region and branch, and leave the build command at pip install -r requirements.txt.

For the start command, enter:
streamlit run app.py --server.port $PORT --server.address 0.0.0.0
The two flags make Streamlit listen on the port Render assigns and on all network interfaces, which is what Render’s own guide uses. The video shows the shorter streamlit run app.py; if your deploy hangs or Render reports that no open port was found, these flags are the fix.
Click Create Web Service. The deploy log shows the build, and when it finishes the app is live on its onrender.com address.


The free tier sleeps when idle
A free Render web service spins down after 15 minutes without traffic. The next visitor wakes it up, and that first page load can take up to a minute. Paid instances stay awake.
Heroku used to behave the same way, but it dropped its free plan in November 2022, which is why I moved this guide to Render. If the app is a demo you just want to hand someone rather than a site you keep online, you can skip the repository and the hosting and share a Streamlit app straight from the browser with PyCafe.
Update the live app
Render redeploys automatically on every push to the connected branch. To change the name on the CV, for example, edit the script, then commit and push:
git add .
git commit -m "Change Name"
git push -u origin master
The new deploy appears under Events and takes a few minutes. Reload the site when it is live; if you still see the old version, clear the browser cache.

The same steps work for any Streamlit project. For a multi-page app with a contact form I used Streamlit Community Cloud instead, which is free as well and reads directly from your GitHub repo.
