Providers
Genezio
将 Nitro 应用部署到 Genezio。
预设:genezio
¥Preset: genezio
🚧 此预设目前处于实验阶段。
1. 项目设置
¥ Project Setup
创建 genezio.yaml
文件:
¥Create genezio.yaml
file:
# The name of the project.
name: nitro-app
# The version of the Genezio YAML configuration to parse.
yamlVersion: 2
backend:
# The root directory of the backend.
path: .output/
# Information about the backend's programming language.
language:
# The name of the programming language.
name: js
# The package manager used by the backend.
packageManager: npm
# Information about the backend's functions.
functions:
# The name (label) of the function.
- name: nitroServer
# The path to the function's code.
path: server/
# The name of the function handler
handler: handler
# The entry point for the function.
entry: index.mjs
要进一步根据你的需求自定义文件,你可以参考 official documentation。
2. 部署你的项目
¥ Deploy your project
使用 genezio nitro 预设构建:
¥Build with the genezio nitro preset:
NITRO_PRESET=genezio npm run build
使用 genezio
命令行部署:
¥Deploy with genezio
cli:
npx genezio deploy
要设置环境变量,请查看 Genezio - Environment Variables。
3. 监控你的项目
¥ Monitor your project
你可以通过 Genezio 应用仪表板 监控和管理你的应用。仪表板 URL(部署后也会提供)允许你访问项目状态和日志的全面视图。
¥You can monitor and manage your application through the Genezio App Dashboard. The dashboard URL, also provided after deployment, allows you to access comprehensive views of your project's status and logs.