Deploying a Tornado App
You can find the step-by-step deployment guide here.
Application Build Copy link
Hostman uses the following environment to build a Tornado application:
- Python 3.10–3.14 (you can choose the version when creating the app)
pip
By default, Hostman runs the following commands to prepare the build environment:
apt-get install -y --no-install-recommends curl build-essential libpq-dev
pip install --upgrade pip
pip install tornadoThe default build command then installs your project's dependencies:
pip install --upgrade -r requirements.txtThe default start command is:
python3 main.pyRequirements Copy link
- Make sure
requirements.txtlists Tornado and all other dependencies your project needs. - Make sure your project's entry point is named
main.pyand starts the application server. - Make sure the application listens on
0.0.0.0rather than127.0.0.1; otherwise, external connections will not work.