I have what I believe to be a simple bit of shell scripting that I am
trying to run through Capistrano that is not working.

run "for js in #{release_path}/public/javascripts/*.js; do gzip --best
-c $js > $js.gz; done"

Basically what I am trying to do is create a gziped compressed version
of my Javascript files (there is also a similar command for CSS)
because my host doesn't support mod_deflate. Plus this way the
compression is only done once instead of on every request.

If I run the command from the command line it seems to work file. But
when running from Capistrano the $js seems to become an empty string.
I am guessing there is some sort of variable substitution before
actually passing it to the shell. I have tried adding a \ before the $
but with no success. Any ideas?


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to