質問編集履歴
3
内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -129,8 +129,6 @@
|
|
129
129
|
config/environments/production.rb
|
130
130
|
|
131
131
|
```
|
132
|
-
# Compress JavaScripts and CSS.
|
133
|
-
config.assets.js_compressor = :uglifier
|
134
132
|
config.assets.js_compressor = Uglifier.new(harmony: true)
|
135
133
|
config.assets.css_compressor = :sass
|
136
134
|
|
@@ -138,4 +136,27 @@
|
|
138
136
|
config.assets.compile = true
|
139
137
|
```
|
140
138
|
|
139
|
+
javascripts/application.js
|
140
|
+
```
|
141
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
142
|
+
// listed below.
|
143
|
+
//
|
144
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
145
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
146
|
+
//
|
147
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
148
|
+
// compiled file.
|
149
|
+
//
|
150
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
151
|
+
// about supported directives.
|
152
|
+
//
|
153
|
+
//= require jquery
|
154
|
+
//= require rails-ujs
|
155
|
+
//= require turbolinks
|
156
|
+
//= require bootstrap-sprockets
|
157
|
+
//= require toastr
|
158
|
+
//= require serviceworker-companion
|
159
|
+
//= require_tree .
|
160
|
+
```
|
161
|
+
|
141
162
|
長々と大変恐縮ですが、ご確認いただければと思います。
|
2
内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -126,4 +126,16 @@
|
|
126
126
|
self.addEventListener('fetch', onFetch);
|
127
127
|
```
|
128
128
|
|
129
|
+
config/environments/production.rb
|
130
|
+
|
131
|
+
```
|
132
|
+
# Compress JavaScripts and CSS.
|
133
|
+
config.assets.js_compressor = :uglifier
|
134
|
+
config.assets.js_compressor = Uglifier.new(harmony: true)
|
135
|
+
config.assets.css_compressor = :sass
|
136
|
+
|
137
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
138
|
+
config.assets.compile = true
|
139
|
+
```
|
140
|
+
|
129
141
|
長々と大変恐縮ですが、ご確認いただければと思います。
|
1
内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
PWA化を行いたく、serviceworkerを導入したのですが、ローカルでは特に問題なく動いているのですが、herokuでのproduction環境ですとなにやらapplication.jsが以下のような理由により働いていないではないか思われます。
|
2
2
|
|
3
|
+
・ログインした時などの出ていた、toastrというgemで作成された「ログインしました」をはじめとするフラッシュメッセージが出なくなってしまった。
|
3
|
-
・ドロップダウンバーをクリックしてもリンクボタンが出てこない。
|
4
|
+
・ドロップダウンバーをクリックしても各々のリンクボタンが出てこない。
|
4
5
|
・micropostの削除ボタンを押すとローカルではdeleteできるが、production環境では、heroku_logsにて以下エラーとなっている。(なぜか、GETにrouteされている)
|
5
6
|
|
6
7
|
```
|