question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Where should I set DisableDeploy?

See original GitHub issue

Newbie question but I can’t find any solution. Thanks in advance

Where should I set DisableDeploy?. Tested so far:

  • config.xml: No effect at all. Is this example file required on a Capacitor project?
  • ios/App/App/Info.plist: No effect at all
  • ios/App/App/config.xml and android/app/src/main/res/xml/config.xml: Works fine until you execute npx cap sync. This command overwrites ios/App/App/config.xml and android/app/src/main/res/xml/config.xml

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
jcesarmobilecommented, Sep 18, 2019

At the moment the only way is manually copying the value to the generated config.xml file, but as you say, it gets overwritten.

With this PR you’ll be able to set it like this in capacitor.config.json:

"cordova": {
    "preferences": {
      "DisableDeploy": "true"
    }
  }

Works for any Cordova preference, not just DisableDeploy.

2reactions
nelson6e65commented, Oct 27, 2020

This seems to NOT be working at all in capacitor 1.5.1

It’s working on Capacitor 2.4.2/Ionic 5.3.4.

PD: Just in case, you must use "true" (string) instead of true (boolean) in order to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The AppFlow livedeploy overwrites my tests on the Emulator ...
But a whole day ago I'm stuck with a problem and I can not solve it. ... upgraded to the last and then...
Read more >
Configure deployment clients - Splunk Documentation
On each client, you must specify the deployment server it will connect to. You do this by configuring the client's deploymentclient.conf file.
Read more >
Disable 'Deploy' button for inbound changeset [closed]
That permission is it. Either users can see and deploy the change sets, or not.
Read more >
How to disable Appflow Live Updates in IONIC app
There is a way to configure your app to disable updates: in capacitor.config.json file add the following to the cordova.preferences object:
Read more >
Using Live Update - Appflow - Ionic.io
Your code will get overwritten if the local app codebase points to the same ... Set the DisableDeploy preference to true in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found