Ruby on rails precompiled images not showing -


i got app deployed on site5, .css s , .js s precompiling , images on other side precompiling (the files) not showing on final views.

this production env:

  cmsdevise::application.configure   # settings specified here take precedence on in config/application.rb    config.relative_url_root = "/~firmaltt"   config.assets.precompile = ['*.js', '*.css', '*.css.erb', '*.*']    # code not reloaded between requests   config.cache_classes = true    # full error reports disabled , caching turned on   config.consider_all_requests_local       = false   config.action_controller.perform_caching = true    # 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 = true    # generate digests assets urls   config.assets.digest = true 

the file images routes listed on /assets (the file) , on manifest.yml, still not showing. rake assets:precompile env=production runs without problems.

i restarted server touch tmp/restart.txt every time. deleted assets , precompiled again. still nothing :(

update, commented:

#config.relative_url_root = "/~firmaltt" 

i think site5 not storing images. so, try following steps -

step 1: go http://aws.amazon.com/s3/, create new account.
step 2: store images there , mark public them
step 3: generate public image url you.

use these image url's images.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -