Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Production mode

I tired a lot to run the application as production. I added in application.properties "vaadin.productionMode=true" but so the error "Failed to load content of './frontend/index.html'. It is required to have './frontend/index.html' file when using..." comes up. After I added in main/resources/META_INF/VAADIN/webapp the index.html with the content described in https://vaadin.com/docs/latest/fusion/application/starting#default-bootstrap-template-and-entry-point the error goes away the log files tells that the application has started in production ("Vaadin is running in production mode.") but unfortunately nothing is shown in the webbrowser.

Does anyone have an idea?

Thanks in advance, Thomas

like image 391
Thomas Avatar asked Aug 05 '26 20:08

Thomas


1 Answers

I'm very late to the party, but in addition to setting the vaadin.productionMode property, did you remember to run the Maven goal vaadin:build-frontend as well? (And vaadin:prepare-frontend, but that you probably already had in your development build.)

Documentation about enabling production mode: https://vaadin.com/docs/latest/flow/guide/production

like image 96
Anna Koskinen Avatar answered Aug 09 '26 22:08

Anna Koskinen