__CAPGO_KEEP_0__
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Capgo의 Live Updates 기능을 사용하여 앱의 UI 및 비즈니스 로직을 실시간으로 원격으로 업데이트할 수 있습니다. 앱 스토어를 통하지 않고도 바로 버그를 고치고 새로운 기능을 배포할 수 있습니다.
이 가이드는 Capgo 빠른 시작을 완료한 것으로 가정합니다. 그리고 이미:
-
설치된
@capgo/capacitor-updaterSDK in your Capacitor app -
__CAPGO_KEEP_1__ 앱
capacitor.config.ts -
Added in your code the
CapacitorUpdater.notifyAppReady()__CAPGO_KEEP_0__
메서드
업로드하는 번들
업로드하는 번들Capgo SDK이 설치되고 설정되면, 첫 번째 라이브 업데이트 번들을 업로드할 준비가 되었습니다.
-
웹 자산을 빌드하세요:
터미널 창 npm run build -
Capgo으로 배포할 패키지를 업로드하세요.
터미널 창 npx @capgo/cli@latest bundle upload --channel=productiongithub/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가
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__ Live Updates 문서의 나머지 부분을 확인하세요. Capgo Live Updates 문서의 나머지 부분을 확인하세요. __CAPGO_KEEP_0__ Live Updates 문서의 나머지 부분을 확인하세요.
__CAPGO_KEEP_0__ Live Updates 문서의 나머지 부분을 확인하세요.
__CAPGO_KEEP_0__ Live Updates 문서의 나머지 부분을 확인하세요.Capgo Live Updates 문서의 나머지 부분을 확인하세요.
__CAPGO_KEEP_0__ Live Updates 문서의 나머지 부분을 확인하세요. Capgo Live Updates 문서의 나머지 부분을 확인하세요.. 다음에 체크할 주요 주제:
Deploy a Live Update
Deploy a Live Update__CAPGO_KEEP_0__ CI/CD __CAPGO_KEEP_0__ CI/CD __CAPGO_KEEP_0__ Native Builds Capgo CI/CD를 사용하여 제품 워크플로우를 Capgo CI/CD와 연결 for the product workflow in Capgo CI/CD, Capgo Native Builds Capgo 네이티브 빌드 workflow에서 제품을 위한 Capgo 통합 Capgo 통합에서 제품 workflow를 위한 CI/CD 통합 __CAPGO_KEEP_0__ 통합에서 구현 세부 정보를 위한, 그리고 GitHub 액션 통합에서 구현 세부 정보를 위한. for the implementation detail in GitHub Actions Integration.