documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

PUBLIC_ROOT prepended to package_path setting inconsistent with --output commandline usage #197

Open napcs opened 12 years ago

napcs commented 12 years ago

I'm using Jammit in conjunction with a non-Rails project, thus I have no "public" folder.

In my config/assets.yml, if I set

package_path = "assets"

the resulting files show up in

public/assets

Looking at the source, I can see why this is happening, but this behavior is inconsistent with the commandline option

--output

I see no way to set PUBLIC_ROOT in the configuration file - could that be made into an option as well, or is it better to hack around it with

package_path = "../assets"

which, kinda feels dirty. :)