Help on Update
Good day!
I deployed Stirling-PDF on my Linux laptop (with .jar file). If I see a new release, how can I update the service while keeping all my current settings intact without having to restore them as I did the first time following the Unix Installation Guide?
Simply replace the jar file should maintain all other settings etc
What about HTML elements? For example, in the languages tab, I removed unnecessary ones and kept only 2-3 required languages. When I replaced the jar file in /opt/Stirling-PDF with a new one, all languages reappeared.
Also, on one test laptop, I had version 0.36.6, and on another work laptop, version 0.38.0. When I installed jar version 0.39.0 on the test laptop, some functions didn't appear, such as converting files to PDF or converting PDF to Word, but these functions were present on the work laptop with version 0.38.0.
Ok, i fixed problem from my test laptop, but i dont know, what to do with HTML elements when i want to update
Can you expland what you mean by html elements Where are these how are you editting or storing etc
For example, in /.git/Stirling-PDF/src/main/resources/templates/fragments/languages.html file, I removed all language lines except the two I needed And in the language tab in the top part of the webpage (where search, theme selection, etc. are located) only the languages that I kept remained
There should no be issue with those files being repicked up in later version if the naming and style has remained same
If it doesn't work its simply because the underlying file has updated since How are you importing that edited file?
I edited the file /.git/Stirling-PDF/src/main/resources/templates/fragments/languages.html, then run the builder as in the manual:
./gradlew build -x test
move the built file:
mv ./build/libs/Stirling-PDF-*.jar /opt/Stirling-PDF/
and restart the service:
systemctl daemon-reload systemctl restart stirling-pdf.service
I think when I copy the new release .jar file to /opt/Stirling-PDF/, I'm importing the unedited configuration Also I think if I run the old gradlew build, it won't help, because initially in ~/.git/Stirling-PDF there was an old distribution and this will construct an old release for me