跳过内容

Using the CLI with self-hosted capgo

GitHub

本教程将展示如何在开发环境中使用 CLI 与自托管的 capgo

要使用 CLI 与自托管的 capgo,编辑 capacitor.config.ts 从您的应用程序目录中复制并设置它,如下所示:

const config: CapacitorConfig = {
appId: 'com.demo.app',
appName: 'demoApp',
webDir: 'dist',
bundledWebRuntime: false,
plugins: {
CapacitorUpdater : {
localHost: "http://localhost:5173",
localWebHost: "http://localhost:5173",
localSupa: "http://localhost:54321",
localSupaAnon: "see_notes",
},
},
};

注意:要获取 localSupaAnon 请遵循 请参阅以下教程 并复制 anon keylocalSupaAnon

Keep going from Using the CLI with self-hosted capgo

Section titled “Keep going from Using the CLI with self-hosted capgo”

如果您正在使用 Using the CLI with self-hosted capgo to plan dashboard and API operations, connect it with Using @capgo/capacitor-updater 使用@capgo/capacitor-updater API 简介 为 API 简介 的实现细节 介绍 为介绍 的实现细节 API 密钥 为 API 密钥 的实现细节, 和 设备 为设备 的实现细节。