网页
综合
更新时间 2026-11-14 15:49:19
Web Services – Render Docs
自动蜘蛛
render.com
正文约 3739 字
Render helps you host web apps written in your favorite language and framework: Node.js with Express, Python with Django or FastAPI—you name it. Render builds and deploys your code with every push to your linked Git branch. You can also deploy a prebuilt Docker image.
Every Render web service gets a unique onrender.com subdomain, and you can add your own custom domains. Web services can also communicate with your other Render services over your private network.
Your web service must bind to a port on host 0.0.0.0 to receive HTTP requests from the public internet. The default expected port is 10000 (you can configure this).
If you don't want your app to be reachable via the public internet, create a private service instead of a web service.
You can get started on Render by deploying one of our basic app templates:
Don't see your framework? Browse more quickstarts.
You can deploy your web service from a linked Git provider repo, a public Git repository URL, or a prebuilt Docker image.
Sign up for Render if you haven't yet.
In the Render Dashboard, click New > Web Service:
Select the source for your web service's code:
Select Git Provider, then connect your Git provider account if you haven't yet.
Select a repository from one of your linked provider accounts.
In the service creation form, provide the following details:
A name to identify your service in the Render Dashboard. Your service's onrender.com subdomain also incorporates this name.
The geographic region where your service will run.
Your services in the same region can communicate over their shared private network.
The branch of the repository to use to build your service.
Your app's programming language. The service deploys to a runtime that includes the chosen language's build tools and dependencies.
Render natively supports these languages and also provides a Docker runtime for building and running a custom image from a Dockerfile.
The command for Render to run to build your service from source.
Common examples include npm install for Node.js and pip install -r requirements.txt for Python.
The command for Render to run to start your built service.
Common examples include npm start for Node.js and gunicorn your_application.wsgi for Python.
Choose a compute plan to run your service on:
If you choose the Free compute plan, note its limitations.
Under the Advanced section, you can set environment variables and secrets, add a persistent disk, set a health check path, and more.
Click Create Web Service. Render kicks off your service's first build and deploy.
Use this method only to deploy a public repository you don't belong to.
Because this method does not use your Git provider credentials, Render does not support auto-deploys or pull request previews for services that use it.
Select Public Git Repository.
Enter the URL of a public Git repository (e.g., https://github.com/render-examples/express-hello-world) and click Connect.
In the service creation form, provide the following details:
A name to identify your service in the Render Dashboard. Your service's onrender.com subdomain also incorporates this name.
The geographic region where your service will run.
Your services in the same region can communicate over their shared private network.
The branch of the repository to use to build your service.
Your app's programming language. The service deploys to a runtime that includes the chosen language's build tools and dependencies.
Render natively supports these languages and also provides a Docker runtime for building and running a custom image from a Dockerfile.
The command for Render to run to build your service from source.
Common examples include npm install for Node.js and pip install -r requirements.txt for Python.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。