실시간 업데이트 배포
이 플러그인을 설치하는 단계와 전체 마크다운 가이드를 포함한 설치 지시를 복사합니다.
Capgo의 Live Updates 기능을 사용하여 앱의 UI 및 비즈니스 로직을 실시간으로 원격으로 업데이트할 수 있습니다. 앱 스토어를 통하지 않고 사용자에게 직접 JS 번들 업데이트를 푸시하여 버그를 즉시 수정하고 새로운 기능을 배포할 수 있습니다.
이 가이드는 native plugin configuration, native packages, 또는 iOS/Android 프로젝트 파일이 native 앱 릴리즈를 필요로 할 때 사용됩니다. Capgo Quickstart 이 가이드는 __CAPGO_KEEP_0__ Quickstart를 완료하고 이미:
-
Capgo CLI를 설치했습니다.
@capgo/capacitor-updaterSDK를 Capacitor 앱에 설치했습니다. -
__CAPGO_KEEP_0__에서 앱 ID와 업데이트 채널을 구성했습니다.
capacitor.config.ts -
code에서 method를 추가했습니다.
CapacitorUpdater.notifyAppReady()이미 위의 단계를 완료하지 않았다면, 먼저 __CAPGO_KEEP_0__ Quickstart를 완료하세요.
Capgo 계정에 앱을 추가하고 앱에 플러그인을 설치하세요.
업로드하는 패키지
업로드하는 패키지 섹션Capgo과 SDK이 설치 및 설정되면, 첫 번째 라이브 업데이트 패키지를 업로드할 준비가되었습니다.
-
웹 자산을 빌드하세요:
터미널 창 npm run build -
Capgo으로 패키지를 업로드하세요:
터미널 창 npx @capgo/cli@latest bundle upload --channel=production/github/workflows/build_and_deploy.yml name: Build source code and send to Capgoconcurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: trueon:push:branches:- mainjobs:deploy_to_capgo:runs-on: ubuntu-lateststeps:- name: Checkoutuses: actions/checkout@v6- uses: actions/setup-node@v6with:node-version: '24'- name: Install dependenciesrun: npm install- name: Buildrun: npm run build- name: Deploy to Capgorun: npx @capgo/cli@latest bundle upload -a ${{ secrets.CAPGO_TOKEN }} --channel ${{ env.CHANNEL }}env:CAPGO_TOKEN: ${{ secrets.CAPGO_TOKEN }}.gitlab-ci.yml stages:- buildbuild:stage: buildimage: node:18cache:- key:files:- package-lock.jsonpaths:- .node_modules/script:- npm install- npm run build- npx @capgo/cli@latest bundle upload -a $CAPGO_TOKEN --channel $CAPGO_CHANNELartifacts:paths:- node_modules/- dist/only:- master이 명령은 지정된 명령에 명시된 채널에 새로운 버전의 번들 업로드합니다.
업로드 문제 해결
업로드 문제 해결 섹션업로드가 실패하면 확인하세요:
- 앱 ID가 __CAPGO_KEEP_0__ 대시보드에 있는 앱과 일치하는지
capacitor.config.tsCapgo 프로젝트의 루트 디렉토리에서 업로드 명령을 실행하는지 - You’re running the upload command from the root of your Capacitor project
- 업로드 문제 해결
문제가 계속되면 문제 해결 페이지
업데이트를 받는 기기
업데이트를 받는 기기업로드한 번들을 테스트할 수 있습니다.
-
기기를 동기화하세요.
터미널 창 npx cap sync ios -
다른 터미널 창에서 업데이트 상태를 확인하기 위해 다음 명령어를 실행하세요.
터미널 창 npx @capgo/cli@latest app debug -
애플리케이션을 로컬에서 실행하세요:
터미널 창 npx cap run iosiOS/Android 프로젝트를 Xcode/Android Studio에서 열고 네이티브로 실행하세요.
-
업데이트를 다운로드하는 데 약 30초 정도 시간이 걸리므로 앱을 열어두세요.
-
로그가 업데이트되는 데 몇 초가 걸리며 업데이트 상태를 표시합니다.
-
앱을 닫고 다시 열어보세요. 라이브 업데이트가 적용된 것을 확인하세요!
__CAPGO_KEEP_0__ Quickstart Capgo Quickstart 다음 단계
다음 단계
다음 단계Capgo을 사용하여 첫 번째 라이브 업데이트를 성공적으로 배포했습니다! 🎉
더 많은 정보를 얻으려면 다음을 검토하세요. Capgo 라이브 업데이트스 문서. 다음 주제를 확인하세요:
Deploy a Live Update에서 계속하기
Deploy a Live Update에서 계속하기Deploy a Live Update을 사용하여 CI/CD 자동화 계획을 만드는 경우 Deploy a Live Update을 연결하세요. Deploy a Live Update Capgo CI/CD Capgo CI/CD를 위한 제품 워크플로우 Capgo Native Builds Capgo Native Builds를 위한 제품 워크플로우 Capgo Integrations Capgo Integrations를 위한 제품 워크플로우 CI/CD 통합 __CAPGO_KEEP_0__ Actions Integration GitHub Actions Integration의 구현 세부 사항 for the implementation detail in GitHub Actions Integration.