mojolicious morbo server is caching by default?

1.1k Views Asked by At

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.

2

There are 2 best solutions below

2
On BEST ANSWER

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.

1
On

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.