This is an example of how to set up a Flask application to deploy on Kinsta’s Application Hosting services.
Flask is a Python-based framework, so Kinsta automatically installs the dependencies defined in your requirements.txt file during the deployment process.
- Fork the following GitHub repository: Kinsta – Hello World – Flask.
- 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.
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: gunicorn helloworld.wsgi