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.pytells streamlit to runHello.py--server.address 0.0.0.0listen on host0.0.0.0so that streamlit is accessible externally--server.port $PORTconfigures streamlit to listen on the auto assignedPORTvariable that railway expects the app to listen on--server.fileWatcherType noneturns 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 falsedisables telemetry reporting--client.showErrorDetails falsedisables showing debug messages in the browser--client.toolbarMode minimalremoves 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!