Теги: cicd  server 

Heroku Alternatives for Python-based Applications


It’s easy to deploy a Web Service on Render. Link your GitHub or GitLab repository and click Create Web Service. Render automatically builds and deploys your service every time you push to your repository. Our platform has native support for Node.js, Python, Ruby, Elixir, Go, and Rust. If these don’t work for you, we can also build and deploy anything with a Dockerfile.

Some features of Web Services on Render:


code deployment

  • Select Web Service from the New dropdown in the Render Dashboard.
  • Select the GitHub or GitLab repository to deploy from. You’ll need to connect your GitHub or GitLab account to Render if you haven’t already. Both public and private repos are supported.
  • Specify the following. Render will autopopulate some values with a best guess based on your code.
    • Name: A name for your Web Service
    • Environment: The programming language of your code or Docker
    • Region: The geographic region to deploy to
    • Branch: The git branch to build
    • Build Command: The command to build your Web Service
    • Start Command: The command to start your Web Service
    • Plan: The amount of RAM and how many CPUs your Web Service requires. Choose from the available plans.
  • Within Advanced, you may also specify environment variables, secrets, persistent disk, health check path, and whether or not to auto deploy on every git push.
  • Click Create Web Service. Once the build completes, your service starts, and it is listening on a port, you will be able to connect to the service.

Web Services on the free plan are automatically spun down after 15 minutes of inactivity. When a new request for a free service comes in, Render spins it up again so it can process the request.

This can cause a response delay of up to 30 seconds for the first request that comes in after a period of inactivity.

The free plan allows for 750 hours of running time per month across all free Web Services in your account and 100 GB of egress bandwidth for each free service. Bandwidth usage in excess of 100 GB is charged at $0.10/GB.

You can track your free usage and bandwidth in your dashboard on the Billing page. We will email you when you’re approaching the free usage limits and also when you exceed them.

When you exceed your free usage limits (i.e., usage hours and/or bandwidth), free services in your account are automatically suspended and can no longer serve traffic until they are upgraded to a paid plan or when free usage is reset at the end of the calendar month, whichever is sooner.

Free usage is reset on the 1st of every month, and all free services suspended for usage limits are automatically resumed.

Other limitation:

  • Free Web Services can be restarted at any time.
  • Free Web Services cannot scale beyond a single instance, either manually or through autoscaling.
  • Free Web Services do not support persistent disks.
  • Free Web Services do not support web shell access.
  • Free Web Services do not support one-off jobs.
  • Free Web Services cannot listen on these reserved ports: 8008, 8012, 8013, 8022, 9090, 9091.
  • Free Web Services and Static Sites can use up to 400 free build hours per month.
  • Builds for free Web Services are typically slower than builds for paid services. Upgrade to a paid plan for faster build and deploy times.
  • Not supported [docker-compose]!

Migrate from [heroku] to Render


github integrations

Monorepo Support

like this:

├── backend
│   ├── app # Generated at build time
│   ├── build
│   │   ├──
│   │   ├──
│   │   └──
│   ├── main.go
│   ├──
│   └── util
│       ├── util.go
│       └── util_test.go
├── community
│   ├── docker
│   │   ├── Dockerfile
│   │   ├──
│   │   └──
│   └──
└── frontend
    ├── build # Generated at build time
    ├── components
    │   └── login.js
    ├── index.js
    ├── sample.ts
    └── src
        ├── auth.js
        ├── authn.js
        ├── authz.js

python version

By default, Render uses the latest patch version of Python 3.7.

You can customize the Python version for your app by setting the PYTHON_VERSION environment variable to a valid Python version, for example 3.8.2. Supported Python versions are those after 3.7.0. Unreleased versions are not supported natively, but can be deployed using Render’s Docker support.

Дополнительные ресурсы:

Смотри еще: