Déployer a Live Mise à jour
Use Capgo’s Mises à jour en direct Fonctionnalité to Mise à jour the UI and business logic of your Application remotely, in real-time. Pousser JS Bundle Mises à jour directly to your Utilisateurs without going through the Application Store to instantly fix bugs and ship Nouveau Fonctionnalités.
This Guide assumes you’ve completed the [Capgo Démarrage rapide](/docs/getting-started/Démarrage rapide) and have already:
-
Installed the
@capgo/capacitor-updaterSDK in your Capacitor app -
Configured your app ID and update channel in
capacitor.config.ts -
Added in your code the
CapacitorUpdater.notifyAppReady()method
If you haven’t done those steps yet, please go Retour and Terminé the Démarrage rapide first.
Uploading a Bundle
Section titled “Uploading a Bundle”With the Capgo SDK installed and configured, you’re ready to Télécharger your first live Mise à jour Bundle:
-
Construction your web assets:
Terminal window npm run build -
Télécharger the Bundle to Capgo:
Terminal window 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:- masterThis will Télécharger a Nouveau Bundle Version to the Canal specified in the Commande.
Dépannage Uploads
Section titled “Dépannage Uploads”If your Télécharger fails, double Vérifier:
- Your app ID in
capacitor.config.tsmatches your app in the Capgo dashboard - You’re running the Télécharger Commande from the root of your Capacitor project
- Your web assets are built and up to date
If you’re still having trouble, go to the Dépannage section.
Receiving an Mise à jour on a Appareil
Section titled “Receiving an Mise à jour on a Appareil”Once your Bundle is uploaded, you can Test the live Mise à jour on a Appareil:
-
Synchroniser your Application to the Appareil:
Terminal window npx cap sync ios -
Open another Terminal and run the following Commande to Vérifier the Mise à jour status:
Terminal window npx @capgo/cli@latest app debug -
Run your Application locally:
Terminal window npx cap run iosOr open the iOS/Android project in Xcode/Android Studio and do a Natif run.
-
Keep the Application open for À propos 30 seconds to allow the Mise à jour to Télécharger in the background.
-
The Journaux will take a few seconds to Mise à jour and show the Mise à jour status.
-
Close and reopen the Application. You should see your live Mise à jour applied!
Refer Retour to the [Capgo Démarrage rapide](/docs/getting-started/Démarrage rapide#receiving-a-live-Mise à jour-on-a-Appareil) for more details on Test Mises à jour en direct.
Suivant Steps
Section titled “Suivant Steps”Congrats on deploying your first live Mise à jour with Capgo! 🎉
To learn more, review the rest of the [Capgo Mises à jour en direct Documentation](/docs/live-Mises à jour). Some key topics to Vérifier out Suivant:
- [Targeting Mises à jour with Canaux](/docs/live-Mises à jour/Canaux)
- [Customizing Mise à jour Behavior](/docs/live-Mises à jour/Mise à jour-behavior)
- [Live Mise à jour Restaurations](/docs/live-Mises à jour/Restaurations)