閲覧いただきまして、ありがとうございます。
開発環境だと、JavaScriptを読み込んでくれるのですが、本番環境だと出てくれません。
BootstrapのJSは動いているのにどうしてでしょう。
動いていないのは、app> assets> javascript> main.jsの中のコードです(汗)
Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure script 'http://cdn.rawgit.com/mahnunchik/markerclustererplus/master/dist/markerclusterer.min.js'. This request has been blocked; the content must be served over HTTPS. example.comp/:1 Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure script 'http://cdn.rawgit.com/printercu/google-maps-utility-library-v3-read-only/master/infobox/src/infobox_packed.js'. This request has been blocked; the content must be served over HTTPS.
上記がローカル環境にはなく、本番環境で出ているエラーです。
かつても、CSSを本番環境が読み込んでくれないエラーがありましたが、よくわからず解決していました。すみませんが、お手すきのさいに、どなたかご教示いただけると幸いでございます。
#追記(8/9)
Failed to load resource: the server responded with a status of 404 () image_01.png Failed to load resource: the server responded with a status of 404 () image_02.png Failed to load resource: the server responded with a status of 404 () image_03.png Failed to load resource: the server responded with a status of 404 () 521:1 Uncaught ReferenceError: countLength is not defined at HTMLTextAreaElement.onkeyup (521:1) 521:1 Uncaught ReferenceError: countLength is not defined at HTMLTextAreaElement.onkeyup (521:1) 521:1 Uncaught ReferenceError: countLength is not defined at HTMLTextAreaElement.onkeyup (521:1)
#追記(8/10)
ruby
1// This is a manifest file that'll be compiled into application.js, which will include all the files 2// listed below. 3// 4// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, 5// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. 6// 7// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the 8// compiled file. JavaScript code in this file should be added after the last require_* statement. 9// 10// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details 11// about supported directives. 12// 13//= require jquery 14//= require jquery_ujs 15//= require turbolinks 16//= require bootstrap 17//= require underscore 18//= require gmaps/google 19//= require_tree ..
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/09 15:48
退会済みユーザー
2017/08/09 15:51
2017/08/09 15:56 編集
退会済みユーザー
2017/08/09 16:18
2017/08/10 05:29