07 Jan 2025 08:21 PM
I have written a github action to try to deploy our custom app when changes are made. When doing so I am being asked to choose whether I want to overwrite the existing app or not. Since this is automation I do not want to have this question pop up but instead wish it to automatically overwrite.
Is there a way to do this?
Solved! Go to Solution.
07 Jan 2025 08:40 PM
I determined if I use the command Run npx dt-app deploy --force-overwrite instead of npm run deploy the overwrite works.
10 Jan 2025 12:55 PM
When trying to add parameters to "npm run", you have to do say via adding an additional "--" in between, e.g.:
npm run deploy -- --force-overwrite
See https://docs.npmjs.com/cli/v10/commands/npm-run-script for details.
Alternatively, as you also mentioned in your comment bellow, you can use "dt-app deploy --force-overwrite".
20 Mar 2025 02:13 PM - edited 20 Mar 2025 02:13 PM
Starting with 0.138.0, dt-app overwrites previously deployed apps by default without the need to provide cli parameter --force-overwrite
. In fact dt-app now displays a warning if you try to use the --force-overwrite
flag:
Warning ────────────────────────────────────────────────────────────────────────────────────────
The --force-overwrite flag is deprecated. Apps, deployed by other users, are now overwritten by default
────────────────────────────────────────────────────────────────────────────────────────────────