いつもお世話になっております。
development環境を以下のようにproduction環境にしたのですが、画像が表示されない状態です。画像はpublic/xxxx内のabc.pngであり、以下コードでdevelopment環境では表示されていました。
bundle exec rake assets:precompile
vim config/environments/production.rb
のconfig.assets.compile = falseをtrueに
その後
bundle exec rake assets:precompile RAILS_ENV=production
確認すべき点などをご教示いただけますと幸いです。
よろしくお願いいたします。
Ruby
1 2show.html.erb 3 <div class="xxx"> 4 <%= image_tag("/xxxx/abc.png")%> 5 </div> 6 7
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/25 07:18
2018/01/25 10:37
2018/01/25 11:48
2018/01/26 02:20