mojolicious morbo server is caching by default?
Asked Answered
L

2

5

I generated a full app from the command console:

 mojo generate app MyApp

After that i started the dev server:

morbo myapp

I changed some code, even changed the name of the default controller, but i can not see any changes in the browser, only if i restart the morbo server works. This is reallly annoying for developing. How to get rid of this caching behaviour?

UPDATE: i noticed if i use hypnotoad instead morbo, works and updates changes properly, so the problem is morbo.

Larena answered 26/10, 2012 at 15:31 Comment(0)
B
5

I've never had this problem before but there is watch().

http://mojolicio.us/perldoc/Mojo/Server/Morbo#watch

Maybe if you explicitly tell the server where to look for changed files it will work. Or, perhaps that can help you find where the problem is.

Bayreuth answered 26/10, 2012 at 15:41 Comment(2)
thanks, the watch param do the trick. adding -w /route/towatch when the server starts from consoleLarena
Tried all the recommendations in this thread without success. Adding -w /route/towatch worked for me but I still need to hit F5 (refresh) a couple of times in the browser for the changes to take effect. Would love to have this sorted completely.Pickar
H
3

On an aditional note, if you want to have live updates directly using morbo+fullapp you should cd to the app's folder then run

$ morbo script/myapp

It would then work properly.

Heller answered 2/4, 2014 at 12:4 Comment(1)
I don't know why you were downvoted, not chdir:ing into the app's folder seems to cause issues such as cached pages and recompilation being flakeyLatvia

© 2022 - 2024 — McMap. All rights reserved.