Rails assets aren't compiled properly -


i'm having unsettling issue ruby on rails today. assets aren't compiled: , that, mean when using asset:precompiled, not compiled.

i believe illustrate problem better. after pre-compiling assets, /public/assets/application.js looks like:

// manifest file that'll compiled including files listed below. // add new javascript/coffee code in separate files in directory , they'll automatically // included in compiled file accessible http://example.com/assets/application.js // it's not advisable add code directly here, if do, it'll appear @ bottom of // compiled file. // //= require jquery //= require jquery-ui //= require jquery_ujs //= require twitter/bootstrap //= require_tree . ; 

same goes css. project works fine on other computers, suspect configuration @ fault here. possibly cause kind of problem ? it's not rails doesn't try precompile, when files copy them asset folder without precompiling them.

any clue on how fix ?

edit: added output of asset:precompile

** invoke assets:precompile (first_time) ** execute assets:precompile /home/plaristote/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /home/plaristote/.rvm/gems/ruby-2.0.0-p0@visibleo_commapp/bin/rake assets:precompile:all rails_env=production rails_groups=assets --trace ** invoke assets:precompile:all (first_time) ** execute assets:precompile:all ** invoke assets:precompile:primary (first_time) ** invoke assets:environment (first_time) ** execute assets:environment ** invoke environment (first_time) ** execute environment ** invoke tmp:cache:clear (first_time) ** execute tmp:cache:clear ** execute assets:precompile:primary /home/plaristote/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /home/plaristote/.rvm/gems/ruby-2.0.0-p0@visibleo_commapp/bin/rake assets:precompile:nondigest rails_env=production rails_groups=assets --trace ** invoke assets:precompile:nondigest (first_time) ** invoke assets:environment (first_time) ** execute assets:environment ** invoke environment (first_time) ** execute environment ** invoke tmp:cache:clear (first_time) ** execute tmp:cache:clear ** execute assets:precompile:nondigest 

check if have in config/enviroments/production.rb:

# disable rails's static asset server (apache or nginx this)

config.serve_static_assets = false

# compress javascripts , css

config.assets.compress = true

# don't fallback assets pipeline if precompiled asset missed

config.assets.compile = false

# generate digests assets urls

config.assets.digest = true


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -