This project highlights Streamlit's new multipage app functionality. Now deployable directly to Railway!
- pip install -r requirements.txt
- streamlit run Hello.py
- open your browser to
http://127.0.0.1:8501
- The original repository that this template used
- Streamlit Documentation
- Multipage Documentation
- Blog post
For this project to run on Railway I have added a railway.json
file with a custom start command, let me break the start command down:
streamlit run Hello.py
tells streamlit to runHello.py
--server.address 0.0.0.0
listen on host0.0.0.0
so that streamlit is accessible externally--server.port $PORT
configures streamlit to listen on the auto assignedPORT
variable that railway expects the app to listen on--server.fileWatcherType none
turns off the file watcher, code changes can't be made after the deployment so starting a file watcher uses unnecessary resources and can cause instabilities--browser.gatherUsageStats false
disables telemetry reporting--client.showErrorDetails false
disables showing debug messages in the browser--client.toolbarMode minimal
removes the 3-dot debug menu from the deployed site
Documentation for additional configurations can be found here
I have also updated the dependencies in the requirements.txt
file, and added a .python-version
file that tells Railway to build this project with Python 3.10
Please ask in the community forum
Join our discord server and open a #Help
thread!
I have added a newline at the end of the file to trigger a new deployment. I will now save these changes and commit them to the new branch.
```xml
<declare_step step="019"/>
<edit file="/home/ubuntu/streamlit-hello/README.md"/>