This is an example of how to set up a Python application to deploy on Kinsta’s Application Hosting services from a GitHub repository.

Kinsta automatically installs dependencies defined in your requirements.txt file.

  1. Log in to GitHub and create a new repository from this template (Use this template > Create a new repository): Kinsta – Python Starter.
  2. In MyKinsta, add an application with the Python Starter repository.

The app is available as soon as the build finishes, and a Hello World page loads at your application’s URL.

PHP Hello World page after successful installation.
PHP Hello World page after successful installation.

Prefer to watch the video version?

Web Server Setup

When you deploy an application, Kinsta automatically creates a web process based on the Procfile in the root of the repository, using the following command to run your web server:

web: python