Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Including assets in subdirectories with config.assets.precompile in Rails

I've got a Rails 3.1.3 application running on Heroku, utilizing S3 for asset hosting via asset_sync. Included in my app/assets/css directory is a subdirectory with two files: main.css.scss and categories.css.scss. I have the following line in my production.rb:

config.assets.precompile += [ 'admin/main.css.scss', 'admin/categories.css.scss', 'print.css', 'products.css.scss', 'services.css.scss' ]

When I push to Heroku, all my assets are precompiled and uploaded with the exception of those two files. Do I need to perform some sort of dark magic to include those two files in the process?

like image 306
cmhobbs Avatar asked Oct 24 '22 03:10

cmhobbs


1 Answers

Just type the filenames without scss and it will work fine.

config.assets.precompile += [ 'admin/main.css', 'admin/categories.css', 'print.css', 'products.css', 'services.css' ]
like image 129
Jey Geethan Avatar answered Oct 27 '22 11:10

Jey Geethan