Closed alexei-28 closed 5 years ago
You don't seem to have vaadin.productionMode=true
in your build.gradle so that is why production mode has not compiled for you.
The plugin does not support shadowjar so it does not automatically add the transpiled resources to the jar archive, so you will also need to manually include those resources.
Vaadin 12.0.4. Gradle 5.1.
In my build gradle:
I have a Vaadin project and build it by Gradle. I create jar by Gradle's pluggin shadowjar. And it's success build project.
In deploy folder I has:
To start project from console I use command:
java -Dlogback.configurationFile=logback.xml -jar myproject.jar
Nice. It's start success.
And I success open web page.
But I need to set production mode. So as result I run my project like this:
java -Dvaadin.productionMode=true -Dlogback.configurationFile=logback.xml -jar myproject.jar
And it start success. But when I try to open web page I get error: