Friday, May 23, 2014

Re: Google Chrome 35 GWT plugin incompatibility

Hi,

I didn't know about DCEVM. Thanks for sharing.

In my poor old development machine I am employing hot-deploy on tomcat.
This works nicely because my webapp has zero initialization cost and the
time is actually consumed on war zip/copy/unzip. We are talking 7sec vs
21sec differences.

Here is the script I use. Your mileage may vary. Also take into account
that you will need some iterations to make sure that it actually hot
deploys in tomcat as it is more fragile than reploy. And AFAIR there was
also a tomcat configuration variable that enables hot deploy but I
cannot remember details.

Hint: Put some logs in the constructor of your service so that you know
the redeploy is triggered.

---- cut here hot-deploy.sh ----
#!/bin/sh -e

TOMCAT=$HOME/tomcat;
WEBAPPSDIR=$TOMCAT/webapps;
LOGDIR=$TOMCAT/logs;
WEBAPP=sn;
LOG=$LOGDIR/$WEBAPP.log;

[ -d war ] || { echo "Cannot find war directory" >&2; exit 1; }

prev_line=`tail -n 1 $LOG`;

rsync -av war/ $WEBAPPSDIR/$WEBAPP;

[ "$1" = "-n" ] && exit 0;

touch $WEBAPPSDIR/$WEBAPP/WEB-INF/web.xml;

#echo $prev_line;
while : ; do
next_line=`tail -n 1 $LOG`;
/bin/echo -ne ".";
sleep 1;
[ "$prev_line" = "$next_line" ] || break;
done;
echo "";
#echo $next_line;


On 05/23/14 22:35, Juan Pablo Gardella wrote:
> @David I improved the productivity using DCEVM
> <https://github.com/dcevm/dcevm> to reduce application redeploys when
> server side code is modified. There are another alternatives, but this
> is free.
>
>
> 2014-05-23 16:17 GMT-03:00 Jens <jens.nehlmeier@gmail.com
> <mailto:jens.nehlmeier@gmail.com>>:
>
> The nice thing about DevMode was that if you made client
> changes that you could test them straight away without a
> redeploy. (We are using -noserver because our server is Jboss
> Fuse).
> I will need to rebuild and redeploy the application now for
> every client code change (or am I understanding this wrongly ?)
>
>
> You understand it wrong. When you make a client code change you
> hit the recompile bookmarklet of SuperDevMode (which you can drag
> in your browser's bookmark bar) to trigger a recompile of your
> app. After the app is recompiled the page reloads automatically
> and you will see the changes. You only need to redeploy if you
> make server changes. When you activate SDM through its bookmarklet
> all client side code will be downloaded from the SDM code server
> and not from your Jboss Fuse server.
>
> With GWT 2.6 the recompile time may take some time (its similar to
> a -draft compile)...how long that greatly depends on your app.
> However GWT trunk already has initial support for
> incremental/modular compilation. With incremental compilation
> turned on GWT will only recompile the GWT modules in which you
> have made changes and the ones that depend on them. So to make
> best use of incremental compilation your app should consist of
> multiple smaller GWT modules instead of a single large one.
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to google-web-toolkit+unsubscribe@googlegroups.com
> <mailto:google-web-toolkit+unsubscribe@googlegroups.com>.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> <mailto:google-web-toolkit@googlegroups.com>.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-web-toolkit+unsubscribe@googlegroups.com
> <mailto:google-web-toolkit+unsubscribe@googlegroups.com>.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> <mailto:google-web-toolkit@googlegroups.com>.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment