harrystech / prelaunchr

A small and simple Rails 4 project that is ready to be used as a prelaunch site. It includes all the necessary requirements like prize groups, open/closed states, and simple social sharing.
MIT License
888 stars 532 forks source link

image precompile issues #8

Closed waruboy closed 10 years ago

waruboy commented 10 years ago

Hello,

First, thank you for making this app open source! It has many useful application.

I have an issue when I tried to do asset precompile.

It give this error message: taufiqm-> rake assets:precompile /home/taufiqm/.rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/taufiqm/.rvm/gems/ruby-2.0.0-p247/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! assets/refer/20percent.jpg isn't precompiled ...

Have any idea what might cause this?

EDIT: Want to add that it works if do config.assets.initialize_on_precompile = false in my config file. Still, would appreciate if somebody could explain the cause

danielschwartz commented 10 years ago

Are you referencing the file in a compiled CSS asset? Take a look at this StackOverflow: http://stackoverflow.com/questions/8048164/file-png-isnt-precompiled. I'm closing this as this is not a Prelaunchr issue.