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

Flask is a Python-based framework, so Kinsta automatically installs the dependencies defined in your requirements.txt file during the deployment process.

  1. Log in to GitHub and create a new repository from this template (Use this template > Create a new repository): Kinsta – Hello World – Flask.
  2. In MyKinsta, add an application with the Hello World – Flask repository. The Start command can be left blank for the web process as Kinsta automatically detects the required command during the first deployment.

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

Flask Hello World page after successful installation.
Flask Hello World page after successful installation.

Web Server Setup

Start Command

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: gunicorn helloworld.wsgi