neutrino36
(neutrino neutrino)
August 30, 2019, 12:07pm
#1
Hello,
How can I deploy a single jar file in Cuba 7?
From what I read after Cuba/Buid Task/Deploy should I have an app.jar file.
Unfortunately there is no app.jar file.
(I saw that Single Uber JAR is marked by default. What happens if I choose Build Uber JAR instead single Uber JAR?)
Please advise.
neutrino36
(neutrino neutrino)
August 30, 2019, 1:29pm
#2
Done!
Choose Custom Jetty env file
run buildUberJar
sudo apt install openjdk-8-jre-headless
java -jar app.jar
Open Browser.
However I don’t know what is Logback conf file used for ?
krivopustov
(Konstantin Krivopustov)
August 30, 2019, 2:27pm
#3
See logbackConfigurationFile parameter explanation in the buildUberJar task documentation.
neutrino36
(neutrino neutrino)
September 2, 2019, 8:45am
#4
logbackConfigurationFile - defines a relative path to a file to be used for logging configuration.
For example:
logbackConfigurationFile = "/modules/global/src/logback.xml"
What means this exactly? This will be the (new) file where will be place the log file?
krivopustov
(Konstantin Krivopustov)
September 6, 2019, 2:08pm
#5
You should create an appropriate file somewhere in your project’s file tree and set the relative path to it in the property.
neutrino36
(neutrino neutrino)
September 6, 2019, 2:37pm
#6
I didn’t understand. Can you give me an example, pls?
And again: what is this logback.xml file used for?
stukalov
(Aleksey Stukalov)
September 6, 2019, 2:53pm
#7
neutrino36
(neutrino neutrino)
September 7, 2019, 5:25am
#8
Sorry but usually I use Log4j.
Thank you!