Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » App in Scout 11 not working when scout.devMode=false
App in Scout 11 not working when scout.devMode=false [message #1847771] Sun, 07 November 2021 14:06 Go to next message
Eclipse UserFriend
Hi.

I developed in Scout 8 before (3 simple apps), now I develop my first app in Scout 11. I testing app at localhost via Eclipse 2021-09 (4.21.0).

If scout.devMode=true (in UI config.properties) then app works fine.

If scout.devMode=false then app not works. When I enter localhost:8082 in the browser, the application does not start at all. No error, no record in console.
In UI config.properties I have scout.auth.anonymousEnabled=true.

Can anyone please advise me on what the problem may be?
Thank you very much.

Re: App in Scout 11 not working when scout.devMode=false [message #1847777 is a reply to message #1847771] Mon, 08 November 2021 02:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Miloslav

Did you run the webpack build in production mode? Check the target/dist folder of your *.ui.html application module. When devMode=true, the non-minified JS/CSS resources are read from the "dev" subfolder. On the other hand, when devMode=false, the minified resources are read from the "prod" subfolder. If these resources are not present, the application cannot start. (You should see 404 HTTP errors in the network tab of your developer tools.)

Regards,
Beat
Re: App in Scout 11 not working when scout.devMode=false [message #1847782 is a reply to message #1847777] Mon, 08 November 2021 04:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi Beat.
Thank you for your response.

And solution is simple copy&paste content "dev" folder to "target/dist" folder (via i.e. Windows Explorer)? Or do I have to do it differently?
Re: App in Scout 11 not working when scout.devMode=false [message #1847783 is a reply to message #1847782] Mon, 08 November 2021 04:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Miloslav

Please have a look at this thread: https://www.eclipse.org/forums/index.php/t/1108865/

Does this help?

Kind regards
Mat
Re: App in Scout 11 not working when scout.devMode=false [message #1847816 is a reply to message #1847783] Tue, 09 November 2021 02:46 Go to previous message
Eclipse UserFriend
Thank you for your advice, they solved my problem.
Previous Topic:User prefererences
Next Topic:How to use Extension
Goto Forum:
  


Current Time: Wed Jun 18 02:30:19 EDT 2025

Powered by FUDForum. Page generated in 0.03802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top