简体   繁体   中英

can't running rake assets:precompile in rails

when i'm try run

rake assets:precompile RAILS_ENV=production

i get error like this :

rake aborted!
Sprockets::ArgumentError: Asset logical path has no extension: ~application

in my config/environtments/production.rb :

config.assets.compile = true

why i get error like this?

@adamk33n3r has it right here, sprockets doesn't understand one of the files in your asset pipeline. It looks like you accidently save a file with a '.~application' extension.

Move any folders/files without extensions out of app/assets and into vendor/assets (or anywhere else rails can find them). This is a known issue with sprockets and bower has a warning about it on their readme see https://github.com/stve/bower/pull/4/files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM