Otto
Otto

Reputation: 3294

mojolicious morbo server is caching by default?

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.

Upvotes: 5

Views: 1175

Answers (2)

user3416788
user3416788

Reputation:

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.

Upvotes: 3

jmcneirney
jmcneirney

Reputation: 1384

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.

Upvotes: 5

Related Questions