On Saturday, 24 October 2020 20:13:23 UTC+1, Jose C wrote:
>
> > The zip_static_files.py utility in your web2py scripts directory will 
> create gzipped versions of all your static files for you. 
>
>> Great.
>> However something goes wrong.
>>
>
>  
As a workaround, you could probably quite easily customize the script.  

It looks like it only needs the web2py environment to get the 
request.folder variable to find the static directory of your app.  If you 
edit the script and change where it gets which folder to scan (hardcode or 
pass in via command line, for example), you should then be able to run it 
simply from python (3 or 2) externally without loading the web2py app.

That should overcome the bug. 

HTH,


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0f54bce2-3a67-4e5c-af34-e8f4281f6455o%40googlegroups.com.

Reply via email to