Re: serve static file?

2011-08-29 Thread sam ”
I'm tried http://sling.apache.org/site/accessing-filesystem-resources-extensionsfsresource.html from http://www.reverse.net/pub/apache//sling/org.apache.sling.fsresource-1.0.2.jar and also from svn trunk. my configuration:

Re: serve static file?

2011-08-29 Thread Alexander Klimetschek
On 29.08.11 15:58, sam ² skyn...@gmail.com wrote: I'm tried http://sling.apache.org/site/accessing-filesystem-resources-extensionsfsre source.html ... I restarted sling, too. But I don't see /apps/fs or /fs in the repository even when I create files under /home/sam/jcr. The file system

Re: serve static file?

2011-08-29 Thread Felix Meschberger
Hi, You don't see it in the repository, but through the Sling Resource Tree. If you access the Sling explorer (e.g. http://localhost:8080/.explorer.html) you will be able to see them. Regards Felix On 29.08.2011 15:58, sam ” wrote: I'm tried

Re: serve static file?

2011-08-29 Thread sam ”
Nice explorer shows files. I was using crx-delite. On Mon, Aug 29, 2011 at 10:30 AM, Felix Meschberger fmesc...@adobe.comwrote: Hi, You don't see it in the repository, but through the Sling Resource Tree. If you access the Sling explorer (e.g. http://localhost:8080/.explorer.html) you

Re: serve static file?

2011-08-29 Thread Sarwar Bhuiyan
You could push the files to the repository by doing an HTTP post. There is even the curl api for uploading and installing CQ packages. Sarwar On Mon, Aug 29, 2011 at 4:08 PM, sam ” skyn...@gmail.com wrote: Nice explorer shows files. I was using crx-delite. On Mon, Aug 29, 2011 at 10:30

serve static file?

2011-05-12 Thread sam lee
Hey, Is there a way to serve static files from filesystem (not repository)? For example, GET /static/js/jquery.js will be served from /var/www/media/js/jquery.js of filesystem, not repository. (/static/* is served from /var/www/media/*)

Re: serve static file?

2011-05-12 Thread Agustín Gañán
Hi Sam, I think you can use the Filesystem Resource Provider bundle. The docs [1] and the source [2]. HTH, Regards, Agus [1] http://sling.apache.org/site/accessing-filesystem-resources-extensionsfsresource.html [2] http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/fsresource

Re: serve static file?

2011-05-12 Thread sam lee
Thanks. I just did not want to put static files in the repository. It was difficult to synchronize files on our VCS and the repository. Normal workflow was, edit javascript and css files. And, then push them to the repository to see the change. If things work, commit to VCS. I could have used

Re: serve static file?

2011-05-12 Thread Julian Sedding
Good to hear. To ease your development setup the FileSystem resource provider should do the trick. Regards Julian On Thu, May 12, 2011 at 1:08 PM, sam lee skyn...@gmail.com wrote: Thanks. I just did not want to put static files in the repository. It was difficult to synchronize files on our