# Platform.sh > 将 Nitro 应用部署到 platform.sh **预设:** `platform_sh` ## 设置 首先,在 platform.sh 上创建一个新项目,并将其链接到你想要自动部署的仓库。 然后在仓库中创建 `.platform.app.yaml` 文件: ```yaml [.platform.app.yaml] name: nitro-app type: 'nodejs:18' disk: 128 web: commands: start: "node .output/server/index.mjs" build: flavor: none hooks: build: | corepack enable npx nypm install NITR_PRESET=platform_sh npm run build mounts: '.data': source: local source_path: .data ```