How to modify the DWC and run in production build
-
Hey guys
I'm now for 2 weeks into the whole topic of 3D printing and things starting to work.I installed the Duet Web Control (DWC) on my Pi that is connected to the Duet 2 and everything is working fine so far.
2 days ago I took a closer look into the code of the DWC and modified some minor things to test some things. I run the "npm run build" command to create a new production version. So far so good. But when I move the new created files of the "/dist/DuetWebControl-SD.zip" to my "/www" folder on my SD-card nothing changes - ofc I deleted the "old" files.
Starting it locally with "npm run serve" works, but I don't want to build the whole project everytime.
Any idea why the new version doesn't want to start?
Cheers! -
@herhor are you running in SBC mode with the duet 2?
if so, you should be using the -SBC output and not the -SD output when you build DWC -
@herhor Perhaps your browser keeps a cached copy, try force-reloading DWC with Ctrl+Shift+R. Alternatively upload the ZIP file without extracting on the Files -> System page to update DWC.
-
Thanks for the replies so far. I will try it out with the SBC.zip later . I'm just wondering why it is working with the original Version this way hmmm.