質問編集履歴

5

ビルドログが変わりますたお(´・ω・`)

2020/06/04 03:12

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -48,11 +48,13 @@
48
48
 
49
49
  Using rake 13.0.1
50
50
 
51
+ Using concurrent-ruby 1.1.6
52
+
51
- 省略( `ー´)ノ
53
+ 省略
52
-
54
+
53
- Removing duktape (2.3.0.0)
55
+ Removing xpath (3.2.0)
54
-
56
+
55
- Bundle completed (182.81s)
57
+ Bundle completed (182.74s)
56
58
 
57
59
  Cleaning up the bundler cache.
58
60
 
@@ -66,95 +68,55 @@
66
68
 
67
69
  Running: rake assets:precompile
68
70
 
69
- DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <top (required)> at /tmp/build_80fc937a442f2b987a156ce786eaba8c/config/application.rb:3)
70
-
71
- yarn install v1.16.0
72
-
73
- info No lockfile found.
74
-
75
- [1/4] Resolving packages...
76
-
77
- warning webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
78
-
79
- warning webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
80
-
81
- warning webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
82
-
83
- warning webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
84
-
85
- [2/4] Fetching packages...
86
-
87
- info fsevents@1.2.13: The platform "linux" is incompatible with this module.
88
-
89
- info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
90
-
91
- [3/4] Linking dependencies...
92
-
93
- warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
94
-
95
- warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
96
-
97
- [4/4] Building fresh packages...
98
-
99
- success Saved lockfile.
100
-
101
- Done in 8.78s.
102
-
103
- yarn install v1.16.0
104
-
105
- [1/4] Resolving packages...
106
-
107
- [2/4] Fetching packages...
108
-
109
- info fsevents@1.2.13: The platform "linux" is incompatible with this module.
110
-
111
- info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
112
-
113
- [3/4] Linking dependencies...
114
-
115
- warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
116
-
117
- warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
118
-
119
- [4/4] Building fresh packages...
120
-
121
- Done in 1.68s.
122
-
123
- I, [2020-06-03T22:01:11.596011 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js
124
-
125
- I, [2020-06-03T22:01:11.597455 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js.gz
126
-
127
- I, [2020-06-03T22:01:11.598283 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
128
-
129
- I, [2020-06-03T22:01:11.599048 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
130
-
131
- I, [2020-06-03T22:01:11.599273 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
132
-
133
- I, [2020-06-03T22:01:11.599541 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
134
-
135
- I, [2020-06-03T22:01:11.599819 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
136
-
137
- I, [2020-06-03T22:01:11.600043 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
138
-
139
- I, [2020-06-03T22:01:11.600443 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
140
-
141
- I, [2020-06-03T22:01:11.600607 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
142
-
143
- Compiling...
144
-
145
- Compilation failed:
146
-
147
- yarn run v1.16.0
148
-
149
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
150
-
151
-
152
-
153
-
154
-
155
- error Command "webpack" not found.
156
-
157
-
71
+ rake aborted!
72
+
73
+ NameError: uninitialized constant Devise
74
+
75
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/config/initializers/devise.rb:1:in `<top (required)>'
76
+
77
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:666:in `block in load_config_initializer'
78
+
79
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:182:in `instrument'
80
+
81
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:665:in `load_config_initializer'
82
+
83
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:625:in `block (2 levels) in <class:Engine>'
84
+
85
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:624:in `each'
86
+
87
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:624:in `block in <class:Engine>'
88
+
89
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
90
+
91
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run'
92
+
93
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
94
+
95
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:50:in `each'
96
+
97
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:50:in `tsort_each_child'
98
+
99
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
100
+
101
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!'
102
+
103
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/config/environment.rb:2:in `<top (required)>'
104
+
105
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
106
+
107
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
108
+
109
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:339:in `require_environment!'
110
+
111
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:523:in `block in run_tasks_blocks'
112
+
113
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
114
+
115
+ /tmp/build_8ed2983011898a8242ee89f49ca85dae/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
116
+
117
+ Tasks: TOP => environment
118
+
119
+ (See full trace by running task with --trace)
158
120
 
159
121
  !
160
122
 
@@ -166,8 +128,6 @@
166
128
 
167
129
  ! Push failed
168
130
 
169
-
170
-
171
131
  ```
172
132
 
173
133
 
@@ -268,6 +228,12 @@
268
228
 
269
229
 
270
230
 
231
+ ### 試したこと(覚えている範囲)
232
+
233
+ バンドらーのバージョンを2.0.2に変更。
234
+
235
+
236
+
271
237
  ### 補足情報
272
238
 
273
239
  Windows 10 home 64ビット

4

config/environments/production.rbの追加

2020/06/04 03:12

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ### 発生している問題
8
8
 
9
- Githubを接続した状態で手動でデプロイとするとデプロイに失敗する
9
+ Githubを接続した状態で手動でデプロイとするとデプロイに失敗する
10
10
 
11
11
 
12
12
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```
16
16
 
17
- ----> Ruby app detected
17
+ -----> Ruby app detected
18
18
 
19
19
  -----> Installing bundler 2.0.2
20
20
 
@@ -40,32 +40,6 @@
40
40
 
41
41
  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
42
42
 
43
- Your Gemfile lists the gem tzinfo-data (>= 0) more than once.
44
-
45
- You should probably keep only one of them.
46
-
47
- Remove any duplicate entries and specify the gem only once (per group).
48
-
49
- While it's not a problem now, it could cause errors if you change the version of one of them later.
50
-
51
- Your Gemfile lists the gem rails-i18n (>= 0) more than once.
52
-
53
- You should probably keep only one of them.
54
-
55
- Remove any duplicate entries and specify the gem only once (per group).
56
-
57
- While it's not a problem now, it could cause errors if you change the version of one of them later.
58
-
59
- Your Gemfile lists the gem devise (>= 0) more than once.
60
-
61
- You should probably keep only one of them.
62
-
63
- Remove any duplicate entries and specify the gem only once (per group).
64
-
65
- While it's not a problem now, it could cause errors if you change the version of one of them later.
66
-
67
- The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
68
-
69
43
  Fetching gem metadata from https://rubygems.org/.............
70
44
 
71
45
  Fetching gem metadata from https://rubygems.org/.
@@ -74,11 +48,11 @@
74
48
 
75
49
  Using rake 13.0.1
76
50
 
77
- 省略省略省略省略省略省略
51
+ 省略( `ー´)ノ
78
-
52
+
79
- Removing regexp_parser (1.7.0)
53
+ Removing duktape (2.3.0.0)
80
-
54
+
81
- Bundle completed (182.29s)
55
+ Bundle completed (182.81s)
82
56
 
83
57
  Cleaning up the bundler cache.
84
58
 
@@ -92,6 +66,8 @@
92
66
 
93
67
  Running: rake assets:precompile
94
68
 
69
+ DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <top (required)> at /tmp/build_80fc937a442f2b987a156ce786eaba8c/config/application.rb:3)
70
+
95
71
  yarn install v1.16.0
96
72
 
97
73
  info No lockfile found.
@@ -122,7 +98,7 @@
122
98
 
123
99
  success Saved lockfile.
124
100
 
125
- Done in 9.16s.
101
+ Done in 8.78s.
126
102
 
127
103
  yarn install v1.16.0
128
104
 
@@ -142,27 +118,27 @@
142
118
 
143
119
  [4/4] Building fresh packages...
144
120
 
145
- Done in 1.65s.
146
-
147
- I, [2020-06-03T12:10:11.258185 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js
148
-
149
- I, [2020-06-03T12:10:11.259578 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js.gz
150
-
151
- I, [2020-06-03T12:10:11.260034 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
152
-
153
- I, [2020-06-03T12:10:11.260829 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
154
-
155
- I, [2020-06-03T12:10:11.261858 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
156
-
157
- I, [2020-06-03T12:10:11.262349 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
158
-
159
- I, [2020-06-03T12:10:11.262603 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
160
-
161
- I, [2020-06-03T12:10:11.262806 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
162
-
163
- I, [2020-06-03T12:10:11.263147 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
164
-
165
- I, [2020-06-03T12:10:11.263315 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
121
+ Done in 1.68s.
122
+
123
+ I, [2020-06-03T22:01:11.596011 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js
124
+
125
+ I, [2020-06-03T22:01:11.597455 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js.gz
126
+
127
+ I, [2020-06-03T22:01:11.598283 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
128
+
129
+ I, [2020-06-03T22:01:11.599048 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
130
+
131
+ I, [2020-06-03T22:01:11.599273 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
132
+
133
+ I, [2020-06-03T22:01:11.599541 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
134
+
135
+ I, [2020-06-03T22:01:11.599819 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
136
+
137
+ I, [2020-06-03T22:01:11.600043 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
138
+
139
+ I, [2020-06-03T22:01:11.600443 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
140
+
141
+ I, [2020-06-03T22:01:11.600607 #861] INFO -- : Writing /tmp/build_80fc937a442f2b987a156ce786eaba8c/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
166
142
 
167
143
  Compiling...
168
144
 
@@ -190,61 +166,103 @@
190
166
 
191
167
  ! Push failed
192
168
 
193
- Build finishedView build log
194
-
195
- Release phase
196
-
197
- ```
198
-
199
-
200
-
201
- ### 試したこと
202
-
203
- gemfile.lockの下の2行を削除してデプロイしようとすると
204
-
205
- ```
206
-
207
- PLATFORMS
208
-
209
- x64-mingw32
210
-
211
- ```
212
-
213
- 以下のビルドログが出力されました。
214
-
215
- ```
216
-
217
- -----> Ruby app detected
218
-
219
- -----> Installing bundler 2.0.2
220
-
221
- -----> Removing BUNDLED WITH version in the Gemfile.lock
222
-
223
- -----> Compiling Ruby/Rails
224
-
225
- -----> Using Ruby version: ruby-2.6.6
226
-
227
- -----> Installing dependencies using bundler 2.0.2
228
-
229
- Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
230
-
231
- Your bundle only supports platforms [] but your local platforms are ["ruby",
232
-
233
- "x86_64-linux"], and there's no compatible match between those two lists.
234
-
235
- Bundler Output: Your bundle only supports platforms [] but your local platforms are ["ruby",
236
-
237
- "x86_64-linux"], and there's no compatible match between those two lists.
238
-
239
- !
240
-
241
- ! Failed to install gems via Bundler.
242
-
243
- !
244
-
245
- ! Push rejected, failed to compile Ruby app.
246
-
247
- ! Push failed
169
+
170
+
171
+ ```
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+ ### ソースコード
180
+
181
+ pacage.json
182
+
183
+ ```
184
+
185
+ {
186
+
187
+ "name": "butube",
188
+
189
+ "private": true,
190
+
191
+ "dependencies": {
192
+
193
+ "@rails/actioncable": "^6.0.0",
194
+
195
+ "@rails/activestorage": "^6.0.0",
196
+
197
+ "@rails/ujs": "^6.0.0",
198
+
199
+ "@rails/webpacker": "4.2.2",
200
+
201
+ "turbolinks": "^5.2.0"
202
+
203
+ },
204
+
205
+ "version": "0.1.0",
206
+
207
+ "devDependencies": {
208
+
209
+ "webpack-dev-server": "^3.11.0"
210
+
211
+ },
212
+
213
+ "dependencies": {}
214
+
215
+ }
216
+
217
+ ```
218
+
219
+
220
+
221
+ config/environments/production.rb
222
+
223
+ ```
224
+
225
+ Rails.application.configure do
226
+
227
+ config.cache_classes = true
228
+
229
+ config.eager_load = true
230
+
231
+ config.consider_all_requests_local = false
232
+
233
+ config.action_controller.perform_caching = true
234
+
235
+ config.assets.compile = true
236
+
237
+ config.public_file_server.enabled = true
238
+
239
+ config.active_storage.service = :local
240
+
241
+ config.log_level = :debug
242
+
243
+ config.log_tags = [ :request_id ]
244
+
245
+ config.action_mailer.perform_caching = false
246
+
247
+ config.i18n.fallbacks = true
248
+
249
+ config.active_support.deprecation = :notify
250
+
251
+ config.log_formatter = ::Logger::Formatter.new
252
+
253
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
254
+
255
+ logger = ActiveSupport::Logger.new(STDOUT)
256
+
257
+ logger.formatter = config.log_formatter
258
+
259
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
260
+
261
+ end
262
+
263
+ config.active_record.dump_schema_after_migration = false
264
+
265
+ end
248
266
 
249
267
  ```
250
268
 
@@ -265,47 +283,3 @@
265
283
 
266
284
 
267
285
  失礼な点があるかもしれませんがどうぞ宜しくおねがい致します。
268
-
269
-
270
-
271
-
272
-
273
- ### 追記
274
-
275
- pacage.json
276
-
277
- ```
278
-
279
- {
280
-
281
- "name": "butube",
282
-
283
- "private": true,
284
-
285
- "dependencies": {
286
-
287
- "@rails/actioncable": "^6.0.0",
288
-
289
- "@rails/activestorage": "^6.0.0",
290
-
291
- "@rails/ujs": "^6.0.0",
292
-
293
- "@rails/webpacker": "4.2.2",
294
-
295
- "turbolinks": "^5.2.0"
296
-
297
- },
298
-
299
- "version": "0.1.0",
300
-
301
- "devDependencies": {
302
-
303
- "webpack-dev-server": "^3.11.0"
304
-
305
- },
306
-
307
- "dependencies": {}
308
-
309
- }
310
-
311
- ```

3

俺の名は山本・・・・イツキング!

2020/06/03 22:09

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,6 +14,206 @@
14
14
 
15
15
  ```
16
16
 
17
+ ----> Ruby app detected
18
+
19
+ -----> Installing bundler 2.0.2
20
+
21
+ -----> Removing BUNDLED WITH version in the Gemfile.lock
22
+
23
+ -----> Compiling Ruby/Rails
24
+
25
+ -----> Using Ruby version: ruby-2.6.6
26
+
27
+ ###### WARNING:
28
+
29
+ Removing `Gemfile.lock` because it was generated on Windows.
30
+
31
+ Bundler will do a full resolve so native gems are handled properly.
32
+
33
+ This may result in unexpected gem versions being used in your app.
34
+
35
+ In rare occasions Bundler may not be able to resolve your dependencies at all.
36
+
37
+ https://devcenter.heroku.com/articles/bundler-windows-gemfile
38
+
39
+ -----> Installing dependencies using bundler 2.0.2
40
+
41
+ Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
42
+
43
+ Your Gemfile lists the gem tzinfo-data (>= 0) more than once.
44
+
45
+ You should probably keep only one of them.
46
+
47
+ Remove any duplicate entries and specify the gem only once (per group).
48
+
49
+ While it's not a problem now, it could cause errors if you change the version of one of them later.
50
+
51
+ Your Gemfile lists the gem rails-i18n (>= 0) more than once.
52
+
53
+ You should probably keep only one of them.
54
+
55
+ Remove any duplicate entries and specify the gem only once (per group).
56
+
57
+ While it's not a problem now, it could cause errors if you change the version of one of them later.
58
+
59
+ Your Gemfile lists the gem devise (>= 0) more than once.
60
+
61
+ You should probably keep only one of them.
62
+
63
+ Remove any duplicate entries and specify the gem only once (per group).
64
+
65
+ While it's not a problem now, it could cause errors if you change the version of one of them later.
66
+
67
+ The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
68
+
69
+ Fetching gem metadata from https://rubygems.org/.............
70
+
71
+ Fetching gem metadata from https://rubygems.org/.
72
+
73
+ Resolving dependencies....
74
+
75
+ Using rake 13.0.1
76
+
77
+ 省略省略省略省略省略省略
78
+
79
+ Removing regexp_parser (1.7.0)
80
+
81
+ Bundle completed (182.29s)
82
+
83
+ Cleaning up the bundler cache.
84
+
85
+ -----> Installing node-v10.15.3-linux-x64
86
+
87
+ -----> Installing yarn-v1.16.0
88
+
89
+ -----> Detecting rake tasks
90
+
91
+ -----> Preparing app for Rails asset pipeline
92
+
93
+ Running: rake assets:precompile
94
+
95
+ yarn install v1.16.0
96
+
97
+ info No lockfile found.
98
+
99
+ [1/4] Resolving packages...
100
+
101
+ warning webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
102
+
103
+ warning webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
104
+
105
+ warning webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
106
+
107
+ warning webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
108
+
109
+ [2/4] Fetching packages...
110
+
111
+ info fsevents@1.2.13: The platform "linux" is incompatible with this module.
112
+
113
+ info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
114
+
115
+ [3/4] Linking dependencies...
116
+
117
+ warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
118
+
119
+ warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
120
+
121
+ [4/4] Building fresh packages...
122
+
123
+ success Saved lockfile.
124
+
125
+ Done in 9.16s.
126
+
127
+ yarn install v1.16.0
128
+
129
+ [1/4] Resolving packages...
130
+
131
+ [2/4] Fetching packages...
132
+
133
+ info fsevents@1.2.13: The platform "linux" is incompatible with this module.
134
+
135
+ info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
136
+
137
+ [3/4] Linking dependencies...
138
+
139
+ warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
140
+
141
+ warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
142
+
143
+ [4/4] Building fresh packages...
144
+
145
+ Done in 1.65s.
146
+
147
+ I, [2020-06-03T12:10:11.258185 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js
148
+
149
+ I, [2020-06-03T12:10:11.259578 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/manifest-cadda289ef9c70eaa0879a36e6263cb33f7523a16b3ef862e0b8609cdc2bdab1.js.gz
150
+
151
+ I, [2020-06-03T12:10:11.260034 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
152
+
153
+ I, [2020-06-03T12:10:11.260829 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/application-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
154
+
155
+ I, [2020-06-03T12:10:11.261858 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
156
+
157
+ I, [2020-06-03T12:10:11.262349 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/home-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
158
+
159
+ I, [2020-06-03T12:10:11.262603 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
160
+
161
+ I, [2020-06-03T12:10:11.262806 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/post-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
162
+
163
+ I, [2020-06-03T12:10:11.263147 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css
164
+
165
+ I, [2020-06-03T12:10:11.263315 #864] INFO -- : Writing /tmp/build_ce2a082d7e7814e35c7b00bf49b4786d/public/assets/video-d0ff5974b6aa52cf562bea5921840c032a860a91a3512f7fe8f768f6bbe005f6.css.gz
166
+
167
+ Compiling...
168
+
169
+ Compilation failed:
170
+
171
+ yarn run v1.16.0
172
+
173
+ info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
174
+
175
+
176
+
177
+
178
+
179
+ error Command "webpack" not found.
180
+
181
+
182
+
183
+ !
184
+
185
+ ! Precompiling assets failed.
186
+
187
+ !
188
+
189
+ ! Push rejected, failed to compile Ruby app.
190
+
191
+ ! Push failed
192
+
193
+ Build finishedView build log
194
+
195
+ Release phase
196
+
197
+ ```
198
+
199
+
200
+
201
+ ### 試したこと
202
+
203
+ gemfile.lockの下の2行を削除してデプロイしようとすると
204
+
205
+ ```
206
+
207
+ PLATFORMS
208
+
209
+ x64-mingw32
210
+
211
+ ```
212
+
213
+ 以下のビルドログが出力されました。
214
+
215
+ ```
216
+
17
217
  -----> Ruby app detected
18
218
 
19
219
  -----> Installing bundler 2.0.2
@@ -24,111 +224,21 @@
24
224
 
25
225
  -----> Using Ruby version: ruby-2.6.6
26
226
 
27
- ###### WARNING:
28
-
29
- Removing `Gemfile.lock` because it was generated on Windows.
30
-
31
- Bundler will do a full resolve so native gems are handled properly.
32
-
33
- This may result in unexpected gem versions being used in your app.
34
-
35
- In rare occasions Bundler may not be able to resolve your dependencies at all.
36
-
37
- https://devcenter.heroku.com/articles/bundler-windows-gemfile
38
-
39
227
  -----> Installing dependencies using bundler 2.0.2
40
228
 
41
- Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
42
-
43
- Fetching gem metadata from https://rubygems.org/.............
44
-
45
- Fetching gem metadata from https://rubygems.org/.
46
-
47
- Resolving dependencies.....
48
-
49
- Using rake 13.0.1
50
-
51
- Using concurrent-ruby 1.1.6
52
-
53
- Using minitest 5.14.1
54
-
55
-    #省略始まり
56
-
57
-    #省略終わり
58
-
59
- Using sass-listen 4.0.0
60
-
61
- Using sass 3.7.4
62
-
63
- Using bootstrap 4.1.3
64
-
65
- Using sass-rails 5.1.0
66
-
67
- Bundle complete! 24 Gemfile dependencies, 86 gems now installed.
68
-
69
- Gems in the groups development and test were not installed.
70
-
71
- Bundled gems are installed into `./vendor/bundle`
72
-
73
- Removing ffi (1.12.2)
74
-
75
- Removing bindex (0.8.1)
76
-
77
- Removing duktape (2.3.0.0)
78
-
79
- Removing webdrivers (4.3.0)
80
-
81
- Removing web-console (4.0.2)
82
-
83
- Bundle completed (13.47s)
84
-
85
- Cleaning up the bundler cache.
86
-
87
- -----> Installing node-v10.15.3-linux-x64
88
-
89
- -----> Installing yarn-v1.16.0
90
-
91
- -----> Detecting rake tasks
92
-
93
- -----> Preparing app for Rails asset pipeline
94
-
95
- Running: rake assets:precompile
96
-
97
- yarn install v1.16.0
98
-
99
- error An unexpected error occurred: "/tmp/build_1e3e5eb65ce941fa67c6ce0790252703/package.json: Unexpected string in JSON at position 312".
100
-
101
- info If you think this is a bug, please open a bug report with the information provided in "/tmp/build_1e3e5eb65ce941fa67c6ce0790252703/yarn-error.log".
102
-
103
- info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
104
-
105
- I, [2020-06-02T08:44:40.701154 #500] INFO -- : Writing /tmp/build_1e3e5eb65ce941fa67c6ce0790252703/public/assets/application-9e11eb8bf0aaa892745c4ae7c588d46b623386179e51badba85c742a2f85d954.js
106
-
107
- I, [2020-06-02T08:44:40.702072 #500] INFO -- : Writing /tmp/build_1e3e5eb65ce941fa67c6ce0790252703/public/assets/application-9e11eb8bf0aaa892745c4ae7c588d46b623386179e51badba85c742a2f85d954.js.gz
108
-
109
- Compiling...
110
-
111
- Compilation failed:
112
-
113
- yarn run v1.16.0
114
-
115
- info If you think this is a bug, please open a bug report with the information provided in "/tmp/build_1e3e5eb65ce941fa67c6ce0790252703/yarn-error.log".
116
-
117
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
118
-
119
-
120
-
121
-
122
-
123
- error An unexpected error occurred: "/tmp/build_1e3e5eb65ce941fa67c6ce0790252703/package.json: Unexpected string in JSON at position 312".
124
-
125
- error An unexpected error occurred: "/tmp/build_1e3e5eb65ce941fa67c6ce0790252703/package.json: Unexpected string in JSON at position 312".
126
-
127
-
229
+ Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
230
+
231
+ Your bundle only supports platforms [] but your local platforms are ["ruby",
232
+
233
+ "x86_64-linux"], and there's no compatible match between those two lists.
234
+
235
+ Bundler Output: Your bundle only supports platforms [] but your local platforms are ["ruby",
236
+
237
+ "x86_64-linux"], and there's no compatible match between those two lists.
128
238
 
129
239
  !
130
240
 
131
- ! Precompiling assets failed.
241
+ ! Failed to install gems via Bundler.
132
242
 
133
243
  !
134
244
 
@@ -138,136 +248,6 @@
138
248
 
139
249
  ```
140
250
 
141
- ### 試したこと
142
-
143
- ```
144
-
145
- bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
146
-
147
- ```
148
-
149
- を実行すると
150
-
151
- ```
152
-
153
- [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
154
-
155
- [DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development:test'`, and stop using this flag
156
-
157
- [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs`
158
-
159
- Using rake 13.0.1
160
-
161
- Using concurrent-ruby 1.1.6
162
-
163
- #省略始まり
164
-
165
- #省略終わり
166
-
167
- Using webpacker 5.1.1
168
-
169
- Bundle complete! 24 Gemfile dependencies, 86 gems now installed.
170
-
171
- Gems in the groups development and test were not installed.
172
-
173
- Bundled gems are installed into `./vendor/bundle`
174
-
175
- ```
176
-
177
- となります。
178
-
179
- その状態で手動でデプロイを押してもビルドログは変わりませんでした。
180
-
181
-
182
-
183
- 次に
184
-
185
- ```
186
-
187
- rake assets:precompile
188
-
189
- ```
190
-
191
- を実行すると
192
-
193
- ```
194
-
195
- I, [2020-06-02T17:54:03.960500 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/star-half-db15fb9b3561d5c741d8aea9ef4f0957bd9bc51aa1caa6d7a5c316e083c1abd5.png
196
-
197
- I, [2020-06-02T17:54:04.362397 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/star-off-6aaeebdaab93d594c005d366ce0d94fba02e7a07fd03557dbee8482f04a91c22.png
198
-
199
- I, [2020-06-02T17:54:05.033070 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/star-on-fd26bf0ea0990cfd808f7540f958eed324b86fc609bf56ec2b3a5612cdfde5f5.png
200
-
201
- I, [2020-06-02T17:54:22.991154 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/application-9e11eb8bf0aaa892745c4ae7c588d46b623386179e51badba85c742a2f85d954.js
202
-
203
- I, [2020-06-02T17:54:23.036504 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/application-9e11eb8bf0aaa892745c4ae7c588d46b623386179e51badba85c742a2f85d954.js.gz
204
-
205
- I, [2020-06-02T17:55:58.051599 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/application-07358f1df7a86090b40099c8441c491b4aeb4ab19135954040ac999b5a2ce88e.css
206
-
207
- I, [2020-06-02T17:55:58.329651 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/application-07358f1df7a86090b40099c8441c491b4aeb4ab19135954040ac999b5a2ce88e.css.gz
208
-
209
- I, [2020-06-02T17:56:13.603244 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/express/lib/application-9232ebdb20ad39572e70fb9e29810e63dbb63b58f5f18617c7c2bc8bd28321b5.js
210
-
211
- I, [2020-06-02T17:56:13.712284 #40536] INFO -- : Writing C:/Users/r1148/app/public/assets/express/lib/application-9232ebdb20ad39572e70fb9e29810e63dbb63b58f5f18617c7c2bc8bd28321b5.js.gz
212
-
213
- Everything's up-to-date. Nothing to do
214
-
215
- ```
216
-
217
- となります。
218
-
219
-
220
-
221
- ### 試したこと
222
-
223
- gemfile.lockの下の2行を削除してデプロイしようとすると
224
-
225
- ```
226
-
227
- PLATFORMS
228
-
229
- x64-mingw32
230
-
231
- ```
232
-
233
- 以下のビルドログが出力されました。
234
-
235
- ```
236
-
237
- -----> Ruby app detected
238
-
239
- -----> Installing bundler 2.0.2
240
-
241
- -----> Removing BUNDLED WITH version in the Gemfile.lock
242
-
243
- -----> Compiling Ruby/Rails
244
-
245
- -----> Using Ruby version: ruby-2.6.6
246
-
247
- -----> Installing dependencies using bundler 2.0.2
248
-
249
- Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
250
-
251
- Your bundle only supports platforms [] but your local platforms are ["ruby",
252
-
253
- "x86_64-linux"], and there's no compatible match between those two lists.
254
-
255
- Bundler Output: Your bundle only supports platforms [] but your local platforms are ["ruby",
256
-
257
- "x86_64-linux"], and there's no compatible match between those two lists.
258
-
259
- !
260
-
261
- ! Failed to install gems via Bundler.
262
-
263
- !
264
-
265
- ! Push rejected, failed to compile Ruby app.
266
-
267
- ! Push failed
268
-
269
- ```
270
-
271
251
 
272
252
 
273
253
  ### 補足情報
@@ -298,7 +278,7 @@
298
278
 
299
279
  {
300
280
 
301
- "name": "app",
281
+ "name": "butube",
302
282
 
303
283
  "private": true,
304
284
 

2

package.jsonの追記

2020/06/03 12:13

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -285,3 +285,47 @@
285
285
 
286
286
 
287
287
  失礼な点があるかもしれませんがどうぞ宜しくおねがい致します。
288
+
289
+
290
+
291
+
292
+
293
+ ### 追記
294
+
295
+ pacage.json
296
+
297
+ ```
298
+
299
+ {
300
+
301
+ "name": "app",
302
+
303
+ "private": true,
304
+
305
+ "dependencies": {
306
+
307
+ "@rails/actioncable": "^6.0.0",
308
+
309
+ "@rails/activestorage": "^6.0.0",
310
+
311
+ "@rails/ujs": "^6.0.0",
312
+
313
+ "@rails/webpacker": "4.2.2",
314
+
315
+ "turbolinks": "^5.2.0"
316
+
317
+ },
318
+
319
+ "version": "0.1.0",
320
+
321
+ "devDependencies": {
322
+
323
+ "webpack-dev-server": "^3.11.0"
324
+
325
+ },
326
+
327
+ "dependencies": {}
328
+
329
+ }
330
+
331
+ ```

1

繁栄したコードの追記

2020/06/02 22:58

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -218,6 +218,58 @@
218
218
 
219
219
 
220
220
 
221
+ ### 試したこと
222
+
223
+ gemfile.lockの下の2行を削除してデプロイしようとすると
224
+
225
+ ```
226
+
227
+ PLATFORMS
228
+
229
+ x64-mingw32
230
+
231
+ ```
232
+
233
+ 以下のビルドログが出力されました。
234
+
235
+ ```
236
+
237
+ -----> Ruby app detected
238
+
239
+ -----> Installing bundler 2.0.2
240
+
241
+ -----> Removing BUNDLED WITH version in the Gemfile.lock
242
+
243
+ -----> Compiling Ruby/Rails
244
+
245
+ -----> Using Ruby version: ruby-2.6.6
246
+
247
+ -----> Installing dependencies using bundler 2.0.2
248
+
249
+ Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
250
+
251
+ Your bundle only supports platforms [] but your local platforms are ["ruby",
252
+
253
+ "x86_64-linux"], and there's no compatible match between those two lists.
254
+
255
+ Bundler Output: Your bundle only supports platforms [] but your local platforms are ["ruby",
256
+
257
+ "x86_64-linux"], and there's no compatible match between those two lists.
258
+
259
+ !
260
+
261
+ ! Failed to install gems via Bundler.
262
+
263
+ !
264
+
265
+ ! Push rejected, failed to compile Ruby app.
266
+
267
+ ! Push failed
268
+
269
+ ```
270
+
271
+
272
+
221
273
  ### 補足情報
222
274
 
223
275
  Windows 10 home 64ビット