You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by Les Hazlewood <lh...@apache.org> on 2010/05/20 00:25:57 UTC

Web site static resources

Hi team,

I'm setting up a new (much nicer) site template for the Confluence
site export.  This template requires static assets (images, css).

Along with our maven generated site, which is also static, I'm
thinking we need a single directory in the web space which indicates
all static resources so we don't conflict with any Confluence-exported
content.

I'm thinking we should have a top-level /static directory under which
all static content resides, including the Maven generated site.
Currently the maven generated site is located at /site which is a
little odd, since we already have a 'site'.  Can we move it to
/static/mvnsite to parallel other static images?  Thoughts?

- Les

Re: Web site static resources

Posted by Les Hazlewood <lh...@apache.org>.
Easier to read:

0 * * * * /usr/local/bin/rsync -p -r /www/confluence-exports/SHIRO/ /www/
incubator.apache.org/shiro >/dev/null 2>&1
5 * * * * find /www/incubator.apache.org/shiro -type f -exec chmod g+rw {}
\; >/dev/null 2>&1
5 * * * * find /www/incubator.apache.org/shiro -type d -exec chmod g+rwx {}
\; >/dev/null 2>&1

Re: Web site static resources

Posted by Les Hazlewood <le...@hazlewood.com>.
Thanks for the help today Alan.  I also added '>/dev/null 2>&1' to the
end of each crontab line so I don't get any emails about innocuous
permission errors.  Here is my crontab file (crontab -e) in case
anyone else finds this via search indexing:

0 * * * * /usr/local/bin/rsync -p -r /www/confluence-exports/SHIRO/
/www/incubator.apache.org/shiro >/dev/null 2>&1
5 * * * * find /www/incubator.apache.org/shiro -type f -exec chmod
g+rw {} \; >/dev/null 2>&1
5 * * * * find /www/incubator.apache.org/shiro -type d -exec chmod
g+rwx {} \; >/dev/null 2>&1

On Wed, May 19, 2010 at 3:59 PM, Alan D. Cabrera <li...@toolazydogs.com> wrote:
> Here's your new crontab entries we talked about:
>
>  0 * * * * (/usr/local/bin/rsync -p -r /www/confluence-exports/SHIRO/ /www/incubator.apache.org/shiro)
>  5 * * * * (find /www/incubator.apache.org/shiro -type f -exec chmod g+rw {} \;)
>  5 * * * * (find /www/incubator.apache.org/shiro -type d -exec chmod g+rwx {} \;)
>
> On May 19, 2010, at 3:25 PM, Les Hazlewood wrote:
>
>> Hi team,
>>
>> I'm setting up a new (much nicer) site template for the Confluence
>> site export.  This template requires static assets (images, css).
>>
>> Along with our maven generated site, which is also static, I'm
>> thinking we need a single directory in the web space which indicates
>> all static resources so we don't conflict with any Confluence-exported
>> content.
>>
>> I'm thinking we should have a top-level /static directory under which
>> all static content resides, including the Maven generated site.
>> Currently the maven generated site is located at /site which is a
>> little odd, since we already have a 'site'.  Can we move it to
>> /static/mvnsite to parallel other static images?  Thoughts?
>>
>> - Les
>
>

Re: Web site static resources

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Here's your new crontab entries we talked about:

 0 * * * * (/usr/local/bin/rsync -p -r /www/confluence-exports/SHIRO/ /www/incubator.apache.org/shiro)
 5 * * * * (find /www/incubator.apache.org/shiro -type f -exec chmod g+rw {} \;)
 5 * * * * (find /www/incubator.apache.org/shiro -type d -exec chmod g+rwx {} \;)

On May 19, 2010, at 3:25 PM, Les Hazlewood wrote:

> Hi team,
> 
> I'm setting up a new (much nicer) site template for the Confluence
> site export.  This template requires static assets (images, css).
> 
> Along with our maven generated site, which is also static, I'm
> thinking we need a single directory in the web space which indicates
> all static resources so we don't conflict with any Confluence-exported
> content.
> 
> I'm thinking we should have a top-level /static directory under which
> all static content resides, including the Maven generated site.
> Currently the maven generated site is located at /site which is a
> little odd, since we already have a 'site'.  Can we move it to
> /static/mvnsite to parallel other static images?  Thoughts?
> 
> - Les


Re: Web site static resources

Posted by Les Hazlewood <lh...@apache.org>.
Yeah, I had to remove the header late last night because it was the
Apache DS background ;)  I expected only the logo to be removed, but
in actuality it was the entire top part :(

On Thu, May 20, 2010 at 5:50 AM, Alan D. Cabrera <li...@toolazydogs.com> wrote:
> The header of the pages seem to be missing.
>
> Also, there are some pages that have messages from individuals.  You might want to clean these up so that it looks more like a community site.  Just my 2 cents.
>
>
> Regards,
> Alan
>
>
> On May 19, 2010, at 11:17 PM, Les Hazlewood wrote:
>
>> Nice - no need to change the template now :)
>>
>> On Wed, May 19, 2010 at 11:10 PM, Kalle Korhonen
>> <ka...@gmail.com> wrote:
>>> On Wed, May 19, 2010 at 10:45 PM, Les Hazlewood <lh...@apache.org> wrote:
>>>> Sounds good to me.  I already created a /static/assets/ directory to
>>>> include things like css, images, javascript - fairly standard kind of
>>>> separation for websites I think (i.e. /static/assets/css,
>>>> /static/assets/images, /static/assets/js, etc) - just to get the site
>>>> template to work.  I'm good to change that /static/css etc, but we'd
>>>> have to modify the auto export template to reflect that.  I think that
>>>> can be a 'when we get around to it' task, no?
>>>
>>> /static/assets is fine - they are not directly visible to the user so
>>> it's not that critical. I've started favoring /assets/style/ (or even
>>> something like /assets/themes/rainbow) and just dumping css and images
>>> all in the same location to make it easy to refer to the images
>>> directly from the css but really, what you have now works fine.
>>>
>>> Kalle
>>>
>>>
>>>> On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
>>>> <ka...@gmail.com> wrote:
>>>>> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>>>>>> I'm thinking we should have a top-level /static directory under which
>>>>>> all static content resides, including the Maven generated site.
>>>>>> Currently the maven generated site is located at /site which is a
>>>>>> little odd, since we already have a 'site'.  Can we move it to
>>>>>> /static/mvnsite to parallel other static images?  Thoughts?
>>>>>
>>>>> /static ok, do we really need /mvnsite added? What if it's just:
>>>>> - /static/latest for latest Maven snapshot
>>>>> - /static/{project.version} for archived Maven releases
>>>>> - /static/css
>>>>> - /static/images
>>>>>
>>>>> I'd try to keep the visible urls as short as possible for user's
>>>>> convenience. It's not absolutely necessary to even deploy the Maven
>>>>> site under /static, could be directly under our webroot.
>>>>>
>>>>> Kalle
>>>>>
>>>>
>>>
>
>

Re: Web site static resources

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
The header of the pages seem to be missing.

Also, there are some pages that have messages from individuals.  You might want to clean these up so that it looks more like a community site.  Just my 2 cents.


Regards,
Alan


On May 19, 2010, at 11:17 PM, Les Hazlewood wrote:

> Nice - no need to change the template now :)
> 
> On Wed, May 19, 2010 at 11:10 PM, Kalle Korhonen
> <ka...@gmail.com> wrote:
>> On Wed, May 19, 2010 at 10:45 PM, Les Hazlewood <lh...@apache.org> wrote:
>>> Sounds good to me.  I already created a /static/assets/ directory to
>>> include things like css, images, javascript - fairly standard kind of
>>> separation for websites I think (i.e. /static/assets/css,
>>> /static/assets/images, /static/assets/js, etc) - just to get the site
>>> template to work.  I'm good to change that /static/css etc, but we'd
>>> have to modify the auto export template to reflect that.  I think that
>>> can be a 'when we get around to it' task, no?
>> 
>> /static/assets is fine - they are not directly visible to the user so
>> it's not that critical. I've started favoring /assets/style/ (or even
>> something like /assets/themes/rainbow) and just dumping css and images
>> all in the same location to make it easy to refer to the images
>> directly from the css but really, what you have now works fine.
>> 
>> Kalle
>> 
>> 
>>> On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
>>> <ka...@gmail.com> wrote:
>>>> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>>>>> I'm thinking we should have a top-level /static directory under which
>>>>> all static content resides, including the Maven generated site.
>>>>> Currently the maven generated site is located at /site which is a
>>>>> little odd, since we already have a 'site'.  Can we move it to
>>>>> /static/mvnsite to parallel other static images?  Thoughts?
>>>> 
>>>> /static ok, do we really need /mvnsite added? What if it's just:
>>>> - /static/latest for latest Maven snapshot
>>>> - /static/{project.version} for archived Maven releases
>>>> - /static/css
>>>> - /static/images
>>>> 
>>>> I'd try to keep the visible urls as short as possible for user's
>>>> convenience. It's not absolutely necessary to even deploy the Maven
>>>> site under /static, could be directly under our webroot.
>>>> 
>>>> Kalle
>>>> 
>>> 
>> 


Re: Web site static resources

Posted by Les Hazlewood <lh...@apache.org>.
Nice - no need to change the template now :)

On Wed, May 19, 2010 at 11:10 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
> On Wed, May 19, 2010 at 10:45 PM, Les Hazlewood <lh...@apache.org> wrote:
>> Sounds good to me.  I already created a /static/assets/ directory to
>> include things like css, images, javascript - fairly standard kind of
>> separation for websites I think (i.e. /static/assets/css,
>> /static/assets/images, /static/assets/js, etc) - just to get the site
>> template to work.  I'm good to change that /static/css etc, but we'd
>> have to modify the auto export template to reflect that.  I think that
>> can be a 'when we get around to it' task, no?
>
> /static/assets is fine - they are not directly visible to the user so
> it's not that critical. I've started favoring /assets/style/ (or even
> something like /assets/themes/rainbow) and just dumping css and images
> all in the same location to make it easy to refer to the images
> directly from the css but really, what you have now works fine.
>
> Kalle
>
>
>> On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
>> <ka...@gmail.com> wrote:
>>> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>>>> I'm thinking we should have a top-level /static directory under which
>>>> all static content resides, including the Maven generated site.
>>>> Currently the maven generated site is located at /site which is a
>>>> little odd, since we already have a 'site'.  Can we move it to
>>>> /static/mvnsite to parallel other static images?  Thoughts?
>>>
>>> /static ok, do we really need /mvnsite added? What if it's just:
>>> - /static/latest for latest Maven snapshot
>>> - /static/{project.version} for archived Maven releases
>>> - /static/css
>>> - /static/images
>>>
>>> I'd try to keep the visible urls as short as possible for user's
>>> convenience. It's not absolutely necessary to even deploy the Maven
>>> site under /static, could be directly under our webroot.
>>>
>>> Kalle
>>>
>>
>

Re: Web site static resources

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Don't forget to document all this in the wiki.  Just my 2 cents.  :)


Regards,
Alan

On May 19, 2010, at 11:10 PM, Kalle Korhonen wrote:

> On Wed, May 19, 2010 at 10:45 PM, Les Hazlewood <lh...@apache.org> wrote:
>> Sounds good to me.  I already created a /static/assets/ directory to
>> include things like css, images, javascript - fairly standard kind of
>> separation for websites I think (i.e. /static/assets/css,
>> /static/assets/images, /static/assets/js, etc) - just to get the site
>> template to work.  I'm good to change that /static/css etc, but we'd
>> have to modify the auto export template to reflect that.  I think that
>> can be a 'when we get around to it' task, no?
> 
> /static/assets is fine - they are not directly visible to the user so
> it's not that critical. I've started favoring /assets/style/ (or even
> something like /assets/themes/rainbow) and just dumping css and images
> all in the same location to make it easy to refer to the images
> directly from the css but really, what you have now works fine.
> 
> Kalle
> 
> 
>> On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
>> <ka...@gmail.com> wrote:
>>> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>>>> I'm thinking we should have a top-level /static directory under which
>>>> all static content resides, including the Maven generated site.
>>>> Currently the maven generated site is located at /site which is a
>>>> little odd, since we already have a 'site'.  Can we move it to
>>>> /static/mvnsite to parallel other static images?  Thoughts?
>>> 
>>> /static ok, do we really need /mvnsite added? What if it's just:
>>> - /static/latest for latest Maven snapshot
>>> - /static/{project.version} for archived Maven releases
>>> - /static/css
>>> - /static/images
>>> 
>>> I'd try to keep the visible urls as short as possible for user's
>>> convenience. It's not absolutely necessary to even deploy the Maven
>>> site under /static, could be directly under our webroot.
>>> 
>>> Kalle
>>> 
>> 


Re: Web site static resources

Posted by Kalle Korhonen <ka...@gmail.com>.
On Wed, May 19, 2010 at 10:45 PM, Les Hazlewood <lh...@apache.org> wrote:
> Sounds good to me.  I already created a /static/assets/ directory to
> include things like css, images, javascript - fairly standard kind of
> separation for websites I think (i.e. /static/assets/css,
> /static/assets/images, /static/assets/js, etc) - just to get the site
> template to work.  I'm good to change that /static/css etc, but we'd
> have to modify the auto export template to reflect that.  I think that
> can be a 'when we get around to it' task, no?

/static/assets is fine - they are not directly visible to the user so
it's not that critical. I've started favoring /assets/style/ (or even
something like /assets/themes/rainbow) and just dumping css and images
all in the same location to make it easy to refer to the images
directly from the css but really, what you have now works fine.

Kalle


> On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
> <ka...@gmail.com> wrote:
>> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>>> I'm thinking we should have a top-level /static directory under which
>>> all static content resides, including the Maven generated site.
>>> Currently the maven generated site is located at /site which is a
>>> little odd, since we already have a 'site'.  Can we move it to
>>> /static/mvnsite to parallel other static images?  Thoughts?
>>
>> /static ok, do we really need /mvnsite added? What if it's just:
>> - /static/latest for latest Maven snapshot
>> - /static/{project.version} for archived Maven releases
>> - /static/css
>> - /static/images
>>
>> I'd try to keep the visible urls as short as possible for user's
>> convenience. It's not absolutely necessary to even deploy the Maven
>> site under /static, could be directly under our webroot.
>>
>> Kalle
>>
>

Re: Web site static resources

Posted by Les Hazlewood <lh...@apache.org>.
Sounds good to me.  I already created a /static/assets/ directory to
include things like css, images, javascript - fairly standard kind of
separation for websites I think (i.e. /static/assets/css,
/static/assets/images, /static/assets/js, etc) - just to get the site
template to work.  I'm good to change that /static/css etc, but we'd
have to modify the auto export template to reflect that.  I think that
can be a 'when we get around to it' task, no?

On Wed, May 19, 2010 at 10:33 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
> On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
>> I'm thinking we should have a top-level /static directory under which
>> all static content resides, including the Maven generated site.
>> Currently the maven generated site is located at /site which is a
>> little odd, since we already have a 'site'.  Can we move it to
>> /static/mvnsite to parallel other static images?  Thoughts?
>
> /static ok, do we really need /mvnsite added? What if it's just:
> - /static/latest for latest Maven snapshot
> - /static/{project.version} for archived Maven releases
> - /static/css
> - /static/images
>
> I'd try to keep the visible urls as short as possible for user's
> convenience. It's not absolutely necessary to even deploy the Maven
> site under /static, could be directly under our webroot.
>
> Kalle
>

Re: Web site static resources

Posted by Kalle Korhonen <ka...@gmail.com>.
On Wed, May 19, 2010 at 3:25 PM, Les Hazlewood <lh...@apache.org> wrote:
> I'm thinking we should have a top-level /static directory under which
> all static content resides, including the Maven generated site.
> Currently the maven generated site is located at /site which is a
> little odd, since we already have a 'site'.  Can we move it to
> /static/mvnsite to parallel other static images?  Thoughts?

/static ok, do we really need /mvnsite added? What if it's just:
- /static/latest for latest Maven snapshot
- /static/{project.version} for archived Maven releases
- /static/css
- /static/images

I'd try to keep the visible urls as short as possible for user's
convenience. It's not absolutely necessary to even deploy the Maven
site under /static, could be directly under our webroot.

Kalle