Supported versions
You can select the major and minor version. Patch versions are applied periodically for bug fixes and the like. When you deploy your app, you always get the latest available patches.Specify the language
To use Python, specifypython as your app’s type:
For example:
* This version doesn’t receive any updates at all.
You are strongly recommended to upgrade to a supported version.
Usage example
Run your own server
You can define any server to handle requests. Once you have it configured, add the following configuration to get it running on Upsun:- Specify one of the supported versions:
- Install the requirements for your app.
- Define the command to start your web server:
Use uWSGI
You can also use uWSGI to manage your server. Follow these steps to get your server started.- Specify one of the supported versions:
- Define the conditions for your web server:
-
Create configuration for uWSGI such as the following:
Replaceconfig/uwsgi.ini
app.pywith whatever your file is. - Install the requirements for your app.
-
Define the entry point in your app:
Package management
Your app container comes with pip pre-installed. For more about managing packages with pip, Pipenv, and Poetry, see how to manage dependencies. To add global dependencies (packages available as commands), add them to thedependencies in your app configuration:
For example, to use pipenv to manage requirements and a virtual environment, add the following: