質問編集履歴
3
gemfilの中身を追加致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
26
|
|
27
|
-
|
27
|
+
```
|
28
28
|
|
29
29
|
app/assets/stylesheets/setting.scss
|
30
30
|
|
@@ -82,9 +82,9 @@
|
|
82
82
|
|
83
83
|
}
|
84
84
|
|
85
|
-
|
85
|
+
```
|
86
|
+
|
86
|
-
|
87
|
+
```ここに言語を入力
|
87
|
-
|
88
88
|
|
89
89
|
gemfil
|
90
90
|
|
@@ -238,6 +238,10 @@
|
|
238
238
|
|
239
239
|
|
240
240
|
|
241
|
+
```
|
242
|
+
|
243
|
+
|
244
|
+
|
241
245
|
### 試したこと
|
242
246
|
|
243
247
|
|
2
gemfilの中身を追加致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,6 +84,160 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
+
|
88
|
+
|
89
|
+
gemfil
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
source 'https://rubygems.org'
|
94
|
+
|
95
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
ruby '2.5.1'
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
104
|
+
|
105
|
+
gem 'rails', '~> 5.2.1'
|
106
|
+
|
107
|
+
# Use mysql as the database for Active Record
|
108
|
+
|
109
|
+
#gem 'mysql2', '>= 0.4.4', '< 0.6.0'
|
110
|
+
|
111
|
+
# Use Puma as the app server
|
112
|
+
|
113
|
+
gem 'puma', '~> 3.11'
|
114
|
+
|
115
|
+
# Use SCSS for stylesheets
|
116
|
+
|
117
|
+
gem 'sass-rails', '~> 5.0'
|
118
|
+
|
119
|
+
# Use Uglifier as compressor for JavaScript assets
|
120
|
+
|
121
|
+
gem 'uglifier', '>= 1.3.0'
|
122
|
+
|
123
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
124
|
+
|
125
|
+
# gem 'mini_racer', platforms: :ruby
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# Use CoffeeScript for .coffee assets and views
|
130
|
+
|
131
|
+
gem 'coffee-rails', '~> 4.2'
|
132
|
+
|
133
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
134
|
+
|
135
|
+
gem 'turbolinks', '~> 5'
|
136
|
+
|
137
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
138
|
+
|
139
|
+
gem 'jbuilder', '~> 2.5'
|
140
|
+
|
141
|
+
# Use Redis adapter to run Action Cable in production
|
142
|
+
|
143
|
+
# gem 'redis', '~> 4.0'
|
144
|
+
|
145
|
+
# Use ActiveModel has_secure_password
|
146
|
+
|
147
|
+
# gem 'bcrypt', '~> 3.1.7'
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
# Use ActiveStorage variant
|
152
|
+
|
153
|
+
# gem 'mini_magick', '~> 4.8'
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
# Use Capistrano for deployment
|
158
|
+
|
159
|
+
# gem 'capistrano-rails', group: :development
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# Reduces boot times through caching; required in config/boot.rb
|
164
|
+
|
165
|
+
gem 'bootsnap', '>= 1.1.0', require: false
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
group :development, :test do
|
170
|
+
|
171
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
172
|
+
|
173
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
174
|
+
|
175
|
+
gem 'mysql2', '>= 0.4.4', '< 0.6.0'
|
176
|
+
|
177
|
+
end
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
group :production do
|
182
|
+
|
183
|
+
gem 'pg', '0.20.0'
|
184
|
+
|
185
|
+
gem 'rails_12factor'
|
186
|
+
|
187
|
+
end
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
group :development do
|
192
|
+
|
193
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
194
|
+
|
195
|
+
gem 'web-console', '>= 3.3.0'
|
196
|
+
|
197
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
198
|
+
|
199
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
200
|
+
|
201
|
+
gem 'spring'
|
202
|
+
|
203
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
204
|
+
|
205
|
+
end
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
group :test do
|
210
|
+
|
211
|
+
# Adds support for Capybara system testing and selenium driver
|
212
|
+
|
213
|
+
gem 'capybara', '>= 2.15'
|
214
|
+
|
215
|
+
gem 'selenium-webdriver'
|
216
|
+
|
217
|
+
# Easy installation and use of chromedriver to run system tests with Chrome
|
218
|
+
|
219
|
+
gem 'chromedriver-helper'
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
226
|
+
|
227
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
228
|
+
|
229
|
+
gem 'mini_magick'
|
230
|
+
|
231
|
+
gem 'carrierwave'
|
232
|
+
|
233
|
+
gem 'kaminari'
|
234
|
+
|
235
|
+
gem 'devise'
|
236
|
+
|
237
|
+
gem 'image_processing'
|
238
|
+
|
239
|
+
|
240
|
+
|
87
241
|
### 試したこと
|
88
242
|
|
89
243
|
|
1
試したことを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,6 +102,56 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
ご回答いただいた方をヒントに(コメント欄に詳細あります)Error↓
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
を改善すべく、$heroku addons:add heroku-postgresqlを実行して、
|
118
|
+
|
119
|
+
$ heroku run rails db:migrateをしてみましたが
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? pg is not part of the bundle. Add it to your Gemfile.
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
というErrorがでました。そもそもpostgresqlの設定をしていないと思いましたので、
|
128
|
+
|
129
|
+
gemfileにpostgresqlを追加し、$ sudo yum install postgresql-develを実行、
|
130
|
+
|
131
|
+
$bundle installをしてみましたら、
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
An error occurred while installing pg (0.20.0), and Bundler cannot continue.
|
140
|
+
|
141
|
+
Make sure that `gem install pg -v '0.20.0' --source 'https://rubygems.org/'` succeeds before bundling.
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
In Gemfile:
|
146
|
+
|
147
|
+
pg
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
のErrorが出てきて、今まで確認できていたブラウザもApplication Errorで確認できなくなってしまいました。
|
152
|
+
|
153
|
+
|
154
|
+
|
105
155
|
### 補足情報(FW/ツールのバージョンなど)
|
106
156
|
|
107
157
|
|