Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
reload templates but not code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
shahn  
View profile  
 More options Mar 21 2012, 9:01 pm
From: shahn <soenkeh...@gmail.com>
Date: Wed, 21 Mar 2012 18:01:37 -0700 (PDT)
Local: Wed, Mar 21 2012 9:01 pm
Subject: reload templates but not code

Hi!

With -fdevelopment you get a snap application that watches both the
templates and the code for changes and reloads accordingly. Is there a way
to get an application that would only reload the templates in case of
changes and not the code?

Our use case is this: The person doing templates has a directory containing
a snaplet subdirectory and all the needed templates. The snap application
is started in this directory. If he changes the templates the application
should reload the templates. But we don't need code recompilation. In fact,
snap's attempts at code reloading cause trouble, i.e.:

can't find a package database at dist/package.conf.inplace

Thanks,
Sönke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MightyByte  
View profile  
 More options Mar 21 2012, 9:05 pm
From: MightyByte <mightyb...@gmail.com>
Date: Wed, 21 Mar 2012 21:05:09 -0400
Local: Wed, Mar 21 2012 9:05 pm
Subject: Re: [snap] reload templates but not code
curl http://127.0.0.1:8000/admin/reload


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shahn  
View profile  
 More options Mar 21 2012, 9:17 pm
From: shahn <soenkeh...@gmail.com>
Date: Wed, 21 Mar 2012 18:17:56 -0700 (PDT)
Local: Wed, Mar 21 2012 9:17 pm
Subject: Re: [snap] reload templates but not code

I see. This does exactly, what we need:

while inotifywait snaplets/heist/resources/**/* ; do curl
localhost:8000/admin/reload ; done

That's great, thanks.

Am Donnerstag, 22. März 2012 02:05:09 UTC+1 schrieb mightybyte:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MightyByte  
View profile  
 More options Mar 21 2012, 9:23 pm
From: MightyByte <mightyb...@gmail.com>
Date: Wed, 21 Mar 2012 21:23:17 -0400
Local: Wed, Mar 21 2012 9:23 pm
Subject: Re: [snap] reload templates but not code
Note that we restricted this to requests coming from localhost because
otherwise there's the potential for a DOS attack.  If you want it
available from outside the site, you could create your own route for
it and control access with auth.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shahn  
View profile  
 More options Mar 21 2012, 11:05 pm
From: shahn <soenkeh...@gmail.com>
Date: Wed, 21 Mar 2012 20:05:44 -0700 (PDT)
Local: Wed, Mar 21 2012 11:05 pm
Subject: Re: [snap] reload templates but not code

Am Donnerstag, 22. März 2012 02:23:17 UTC+1 schrieb mightybyte:

> Note that we restricted this to requests coming from localhost because
> otherwise there's the potential for a DOS attack.

I was wondering about that. And I hoped there was a restriction to
localhost. Good to know there is, thanks.

If you want it

Am Donnerstag, 22. März 2012 02:23:17 UTC+1 schrieb mightybyte:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »