jezdez/django_compressor — Issue #162: Can someone please post their config
Author: markstahler
Created: 2011-11-23 20:56:25+00:00
State: open

I am having a hell of a trouble getting Compressor to work on my server. I get "No such file or directory" errors with the following config getting caught up on the JS filter. I am running Debian and no Java wrappers were provided but something like

#!/bin/sh
java -jar "compiler.jar" "$@"

seems to work when executed from the command line. I have also tried using the absolute path in front of compiler.jar.

Here is my config.

# Django Compressor
COMPRESS_URL = STATIC_URL
COMPRESS_ROOT = STATIC_ROOT
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter','compressor.filters.cssmin.CSSMinFilter']
COMPRESS_YUI_BINARY = os.path.join(PROJECT_PATH, 'bin/yuicompressor.jar')
COMPRESS_JS_FILTERS = ['compressor.filters.closure.ClosureCompilerFilter']
COMPRESS_CLOSURE_COMPILER_BINARY = os.path.join(PROJECT_PATH, 'bin/closure.sh')

Project path gets resolved to /srv/www/project which is the base dir for the django project. Everything is in the right place and execution permissions are there. I have tried JS filter with both YUI and Closure.

There is something glaringly obvious that I am missing and if someone would take the time to show me what I am forgetting to do I would appreciate it a lot as I am getting pretty frustrated. Thanks