Web App Hosting
Projects can run web applications and make them accessible via HTTPS. Any application running on localhost in your project can be accessed externally.Why Host Apps in Your Project?
Simple Deployment No separate hosting setup. Your project is already running - just start your app. Use Idle Compute When you’re not running notebooks, your project can host applications. Make use of the compute you’re already paying for. One Server, Multiple Uses Same environment for notebooks and apps. Share dependencies, data, and resources.How It Works
- Your app runs on a local port (e.g., 5000)
- Alph creates a secure tunnel
- App is accessible at
https://your-project.runalph.dev
Supported Frameworks
Streamlit
Gradio
Flask
FastAPI
Important Configuration
Bind to 0.0.0.0
Your app must bind to0.0.0.0, not 127.0.0.1:
Default Port
The default port is 5000. Configure your project settings to use different ports.Environment Variables
Set secrets in project settings → Environment Variables:Running in Background
Using tmux
Using nohup
Troubleshooting
App Not Accessible
Check:- Is app running? (
ps aux | grep python) - Bound to
0.0.0.0? (not127.0.0.1) - Correct port? (default 5000)