Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Help on Update

Open stinger679 opened this issue 11 months ago • 7 comments

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?

stinger679 avatar Jan 28 '25 10:01 stinger679

Simply replace the jar file should maintain all other settings etc

Frooodle avatar Jan 28 '25 10:01 Frooodle

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.

stinger679 avatar Jan 28 '25 11:01 stinger679

Ok, i fixed problem from my test laptop, but i dont know, what to do with HTML elements when i want to update

stinger679 avatar Jan 30 '25 07:01 stinger679

Can you expland what you mean by html elements Where are these how are you editting or storing etc

Frooodle avatar Jan 30 '25 08:01 Frooodle

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

stinger679 avatar Jan 30 '25 13:01 stinger679

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?

Frooodle avatar Jan 30 '25 14:01 Frooodle

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

stinger679 avatar Jan 31 '25 07:01 stinger679