質問編集履歴
3
文字をコピペできるようにした harigamiで投稿
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,11 +16,13 @@
|
|
16
16
|
|
17
17
|
RailsアプリをHerokuにデプロイしたあと、ApplicationErrorが出てしまい、その命令どうりに heroku logs --tail を実行しました。そしたら、たくさんの文字が出てることがわかりました。
|
18
18
|
|
19
|
+
|
20
|
+
|
19
|
-
|
21
|
+
[heroku logs --tailした結果(表示された文字)](https://harigami.jp/cd?hsh=cd790797-1226-442c-9dba-9ffe6711106e)
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
|
23
|
-
|
23
|
+
↓ heroku logs --tailした結果(写真)
|
24
|
+
|
25
|
+
|
24
26
|
|
25
27
|
![一個目](e03e3a2ad4d3f15b3f77e84074ba95e5.png)
|
26
28
|
|
2
エラーじゃなく文字に修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
RailsアプリをHerokuにデプロイしたあと、ApplicationErrorが出てしまい、その命令どうりに heroku logs --tail を実行しました。そしたら、たくさんの
|
17
|
+
RailsアプリをHerokuにデプロイしたあと、ApplicationErrorが出てしまい、その命令どうりに heroku logs --tail を実行しました。そしたら、たくさんの文字が出てることがわかりました。
|
18
18
|
|
19
19
|
入りきらないので画像張っておきます。
|
20
20
|
|
1
説明を増やした
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,12 @@
|
|
6
6
|
|
7
7
|
・ herokuはnpmを使用してインストール
|
8
8
|
|
9
|
+
・ node.js version 8.11.1
|
10
|
+
|
11
|
+
・ npm version 5.6.0
|
12
|
+
|
13
|
+
・ bundler version 1.17.3
|
14
|
+
|
9
15
|
|
10
16
|
|
11
17
|
RailsアプリをHerokuにデプロイしたあと、ApplicationErrorが出てしまい、その命令どうりに heroku logs --tail を実行しました。そしたら、たくさんのエラーが出てることがわかりました。
|
@@ -24,6 +30,188 @@
|
|
24
30
|
|
25
31
|
|
26
32
|
|
33
|
+
Gemfile
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
source 'https://rubygems.org'
|
40
|
+
|
41
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
ruby '2.6.0'
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
50
|
+
|
51
|
+
gem 'rails', '~> 5.2.4.1'
|
52
|
+
|
53
|
+
gem 'pg', '< 1.0.0', group: :production
|
54
|
+
|
55
|
+
# Use sqlite3 as the database for Active Record
|
56
|
+
|
57
|
+
# gem 'sqlite3'
|
58
|
+
|
59
|
+
gem 'mysql2', group: :development
|
60
|
+
|
61
|
+
# Use Puma as the app server
|
62
|
+
|
63
|
+
gem 'puma', '~> 3.11'
|
64
|
+
|
65
|
+
# Use SCSS for stylesheets
|
66
|
+
|
67
|
+
gem 'sass-rails', '~> 5.0'
|
68
|
+
|
69
|
+
# Use Uglifier as compressor for JavaScript assets
|
70
|
+
|
71
|
+
gem 'uglifier', '>= 1.3.0'
|
72
|
+
|
73
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
74
|
+
|
75
|
+
# gem 'mini_racer', platforms: :ruby
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
# Use CoffeeScript for .coffee assets and views
|
80
|
+
|
81
|
+
#gem 'coffee-rails', '~> 4.2'
|
82
|
+
|
83
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
84
|
+
|
85
|
+
#gem 'turbolinks', '~> 5'
|
86
|
+
|
87
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
88
|
+
|
89
|
+
gem 'jbuilder', '~> 2.5'
|
90
|
+
|
91
|
+
# Use Redis adapter to run Action Cable in production
|
92
|
+
|
93
|
+
# gem 'redis', '~> 4.0'
|
94
|
+
|
95
|
+
# Use ActiveModel has_secure_password
|
96
|
+
|
97
|
+
# gem 'bcrypt', '~> 3.1.7'
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
# Use ActiveStorage variant
|
102
|
+
|
103
|
+
# gem 'mini_magick', '~> 4.8'
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
# Use Capistrano for deployment
|
108
|
+
|
109
|
+
# gem 'capistrano-rails', group: :development
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
# Reduces boot times through caching; required in config/boot.rb
|
114
|
+
|
115
|
+
gem 'bootsnap', '>= 1.1.0', require: false
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
group :development, :test do
|
120
|
+
|
121
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
122
|
+
|
123
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
group :development do
|
130
|
+
|
131
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
132
|
+
|
133
|
+
gem 'web-console', '>= 3.3.0'
|
134
|
+
|
135
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
136
|
+
|
137
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
138
|
+
|
139
|
+
gem 'spring'
|
140
|
+
|
141
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
group :test do
|
148
|
+
|
149
|
+
# Adds support for Capybara system testing and selenium driver
|
150
|
+
|
151
|
+
gem 'capybara', '>= 2.15'
|
152
|
+
|
153
|
+
gem 'selenium-webdriver'
|
154
|
+
|
155
|
+
# Easy installation and use of chromedriver to run system tests with Chrome
|
156
|
+
|
157
|
+
gem 'chromedriver-helper'
|
158
|
+
|
159
|
+
end
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
group :development do
|
164
|
+
|
165
|
+
gem 'letter_opener_web'
|
166
|
+
|
167
|
+
end
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
172
|
+
|
173
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
174
|
+
|
175
|
+
gem 'devise'
|
176
|
+
|
177
|
+
gem 'carrierwave'
|
178
|
+
|
179
|
+
#gem 'rmagick'
|
180
|
+
|
181
|
+
gem 'rails-i18n', '~> 5.1'
|
182
|
+
|
183
|
+
gem 'dotenv-rails'
|
184
|
+
|
185
|
+
gem 'ransack'
|
186
|
+
|
187
|
+
gem 'will_paginate'
|
188
|
+
|
189
|
+
gem 'bootstrap-will_paginate'
|
190
|
+
|
191
|
+
gem 'impressionist'
|
192
|
+
|
193
|
+
gem 'ratyrate'
|
194
|
+
|
195
|
+
gem 'jquery-rails'
|
196
|
+
|
197
|
+
gem 'jquery-ui-rails'
|
198
|
+
|
199
|
+
gem 'rinku'
|
200
|
+
|
201
|
+
gem 'acts-as-taggable-on', '~> 6.0'
|
202
|
+
|
203
|
+
gem 'pry-rails'
|
204
|
+
|
205
|
+
gem 'kaminari'
|
206
|
+
|
207
|
+
gem 'rails_12factor', group: :production
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
```
|
212
|
+
|
213
|
+
|
214
|
+
|
27
215
|
ググってもわかりませんでした。。
|
28
216
|
|
29
217
|
お願いします。助けてください。
|