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.

jacktrade
  • 3,125
  • 2
  • 36
  • 50

2 Answers2

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.

jmcneirney
  • 1,374
  • 8
  • 23
  • thanks, the watch param do the trick. adding -w /route/towatch when the server starts from console – jacktrade Oct 26 '12 at 16:58
  • 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. – gpwr Sep 14 '16 at 12:39
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.

  • 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 flakey – Tanoh Apr 14 '16 at 12:44