Site-level versioning

2 views
Skip to first unread message

Ian Eslick

unread,
Sep 11, 2009, 2:10:28 AM9/11/09
to webl...@googlegroups.com
Bundling, versioning, etc is cool. Thanks!

Versioning works great if you're doing interactive updates on a
running site, but the default counter variable is reset if you have to
restart or you do a full upgrade of the site (or for some reason lose
your tally file state). Setting *initial-bundle-id* on a recover or
significant upgrade feels likely to be error prone.

Another approach might be to have both a release version associated
with the webapp "1.1". If you ever delete the tally file, you can
simply increment your site version to ensure that resources are
freshly cached.

(setf (webapp-version webapp) "1.1") => weblocks.1.1.0.js were the
last number is the current tally.


Anyone have a better (or existing) solution to this problem? It's a
simple patch but I don't want to step on toes.

Thanks,
Ian

Leslie P. Polzer

unread,
Sep 13, 2009, 4:56:12 AM9/13/09
to weblocks
On Sep 11, 8:10 am, Ian Eslick <esl...@media.mit.edu> wrote:
>
> (setf (webapp-version webapp) "1.1") => weblocks.1.1.0.js were the  
> last number is the current tally.
>
> Anyone have a better (or existing) solution to this problem?  It's a  
> simple patch but I don't want to step on toes.

How about just saving the current bundle id to a file and restoring
it later?

Leslie
Reply all
Reply to author
Forward
0 new messages