Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:06 Go to next message
Miloslav Frajdl is currently offline Miloslav FrajdlFriend
Messages: 55
Registered: June 2018
Member
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 07:24 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 213
Registered: November 2010
Senior Member
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 09:10 Go to previous messageGo to next message
Miloslav Frajdl is currently offline Miloslav FrajdlFriend
Messages: 55
Registered: June 2018
Member
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 09:27 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 235
Registered: September 2011
Senior Member
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 07:46 Go to previous message
Miloslav Frajdl is currently offline Miloslav FrajdlFriend
Messages: 55
Registered: June 2018
Member
Thank you for your advice, they solved my problem.
Previous Topic:User prefererences
Next Topic:How to use Extension
Goto Forum:
  


Current Time: Thu Oct 10 17:25:27 GMT 2024

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

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

Back to the top