I modified the the "view/standaloneTortoise.scala.html" file for
including some custom code. I found that, after this process, I have
to clean Galapagos compilation cache, removing the contents inside the
"target" directory, after that I can see my changes on the genarated code.
That shouldn’t be the case. How are you running Play? If you use
|start|, that puts Play into “production mode”, and you’ll need to drop
the server and recompile things, yes, but you should really only use
|start| at the point when you deploying this for other people to use.
When you’re just doing development work on the web server, you should
use the development mode by launching Play with the |run| command (or
|play run| from your terminal). When I do that on my local machine, I
can edit |view/standaloneTortoise.scala.html| and then just reload the
page to see my changes—no cache-cleaning or substantial wait necessary.
Is that what you’re doing?
every time I remove all the files inside "target" folder, I believe
Galapagos has to compile whole project again
Indeed. I would recommend against that, unless absolutely necessary.
the thing is, everytime it happens, Galapagos breaks two or three
times before ending compiling everything
I’m not entirely sure what you’re referring to. I have noticed that,
sometimes, it hangs when trying to compile the CoffeeScript files. I
don’t know exactly why that is, but it happens irregularly and hasn’t
been a big problem for me. If that hang is the “breaking” you’re
referring to, and if my suggestion about using the development mode
doesn’t work for you for some reason, maybe just try to avoid deleting
the files in the |target/web| folder. That’s the one that contains all
of the compiled CoffeeScript files. The directory with the compiled file
from |view/standaloneTortoise.scala.html| is |target/scala-2.11|—that’s
the one you would want to delete, if any.
On 06/13/2015 01:05 PM, Oscar Martinez wrote:
Hi. I'm working on Galapagos. I modified the the
"view/standaloneTortoise.scala.html" file for including some custom
code. I found that, after this process, I have to clean Galapagos
compilation cache, removing the contents inside the "target"
directory, after that I can see my changes on the genarated code. But,
every time I remove all the files inside "target" folder, I believe
Galapagos has to compile whole project again. And the thing is,
everytime it happens, Galapagos breaks two or three times before
ending compiling everything.
So, I think that one option is to remove only the files related with
the "view/standaloneTortoise.scala.html" to prevent recompile
everything again, but I'm not sure which are the specifics files for that.
Thanks,
--
You received this message because you are subscribed to the Google
Groups "netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.