質問編集履歴

4

追加情報

2019/09/08 00:10

投稿

Casablanca_mtg
Casablanca_mtg

スコア209

test CHANGED
File without changes
test CHANGED
@@ -191,3 +191,93 @@
191
191
 
192
192
 
193
193
  ```
194
+
195
+ rails s エラー内容です
196
+
197
+
198
+
199
+ ```
200
+
201
+ 2019-09-08 08:37:46 +0900: Rack app error handling request { GET / }
202
+
203
+ #<LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.4), already activated sqlite3-1.3.13. Make sure all dependencies are added to Gemfile.>
204
+
205
+ /home/ec2-user/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem'
206
+
207
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `<main>'
208
+
209
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
210
+
211
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
212
+
213
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
214
+
215
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
216
+
217
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
218
+
219
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.1.9/lib/zeitwerk/kernel.rb:23:in `require'
220
+
221
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/connection_adapters/connection_specification.rb:170:in `spec'
222
+
223
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:1044:in `establish_connection'
224
+
225
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/connection_handling.rb:51:in `establish_connection'
226
+
227
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/railtie.rb:201:in `block (2 levels) in <class:Railtie>'
228
+
229
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `class_eval'
230
+
231
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `block in execute_hook'
232
+
233
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
234
+
235
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
236
+
237
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
238
+
239
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
240
+
241
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
242
+
243
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/base.rb:327:in `<module:ActiveRecord>'
244
+
245
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/base.rb:27:in `<main>'
246
+
247
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
248
+
249
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
250
+
251
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
252
+
253
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
254
+
255
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
256
+
257
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.1.9/lib/zeitwerk/kernel.rb:23:in `require'
258
+
259
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.0/lib/active_record/query_cache.rb:31:in `run'
260
+
261
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:28:in `before'
262
+
263
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:429:in `block in make_lambda'
264
+
265
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:201:in `block (2 levels) in halting'
266
+
267
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:607:in `block (2 levels) in default_terminator'
268
+
269
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:606:in `catch'
270
+
271
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:606:in `block in default_terminator'
272
+
273
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:202:in `block in halting'
274
+
275
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:514:in `block in invoke_before'
276
+
277
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:514:in `each'
278
+
279
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/activesup
280
+
281
+ ```
282
+
283
+ ![イメージ説明](5035369d857d2f88418cfdc1b5de3493.png)

3

gemfileの追加

2019/09/08 00:09

投稿

Casablanca_mtg
Casablanca_mtg

スコア209

test CHANGED
File without changes
test CHANGED
@@ -77,3 +77,117 @@
77
77
  ![イメージ説明](1ec7c78d3773db3a238ebadb1c3eb7c0.png)
78
78
 
79
79
  よろしくお願いいたします
80
+
81
+ ```Gemfile
82
+
83
+ source 'https://rubygems.org'
84
+
85
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
86
+
87
+
88
+
89
+ ruby '2.6.3'
90
+
91
+
92
+
93
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
94
+
95
+ gem 'rails', '~> 6.0.0'
96
+
97
+ # Use sqlite3 as the database for Active Record
98
+
99
+ gem 'sqlite3', '~> 1.3.6'
100
+
101
+ # Use Puma as the app server
102
+
103
+ gem 'puma', '~> 3.11'
104
+
105
+ # Use SCSS for stylesheets
106
+
107
+ gem 'sass-rails', '~> 5'
108
+
109
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
110
+
111
+ gem 'webpacker', '~> 4.0'
112
+
113
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
114
+
115
+ gem 'turbolinks', '~> 5'
116
+
117
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
118
+
119
+ gem 'jbuilder', '~> 2.7'
120
+
121
+ # Use Redis adapter to run Action Cable in production
122
+
123
+ # gem 'redis', '~> 4.0'
124
+
125
+ # Use Active Model has_secure_password
126
+
127
+ # gem 'bcrypt', '~> 3.1.7'
128
+
129
+
130
+
131
+ # Use Active Storage variant
132
+
133
+ # gem 'image_processing', '~> 1.2'
134
+
135
+
136
+
137
+ # Reduces boot times through caching; required in config/boot.rb
138
+
139
+ gem 'bootsnap', '>= 1.4.2', require: false
140
+
141
+
142
+
143
+ group :development, :test do
144
+
145
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
146
+
147
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
148
+
149
+ end
150
+
151
+
152
+
153
+ group :development do
154
+
155
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
156
+
157
+ gem 'web-console', '>= 3.3.0'
158
+
159
+ gem 'listen', '>= 3.0.5', '< 3.2'
160
+
161
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
162
+
163
+ gem 'spring'
164
+
165
+ gem 'spring-watcher-listen', '~> 2.0.0'
166
+
167
+ end
168
+
169
+
170
+
171
+ group :test do
172
+
173
+ # Adds support for Capybara system testing and selenium driver
174
+
175
+ gem 'capybara', '>= 2.15'
176
+
177
+ gem 'selenium-webdriver'
178
+
179
+ # Easy installation and use of web drivers to run system tests with browsers
180
+
181
+ gem 'webdrivers'
182
+
183
+ end
184
+
185
+
186
+
187
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
188
+
189
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
190
+
191
+
192
+
193
+ ```

2

画像の変更

2019/09/06 13:59

投稿

Casablanca_mtg
Casablanca_mtg

スコア209

test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,7 @@
60
60
 
61
61
  Puma starting in single mode...
62
62
 
63
- * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
63
+ * Version 3.12.1 (ruby 2.6.3-p62), codename: Lamas in Pajamas
64
64
 
65
65
  * Min threads: 5, max threads: 5
66
66
 
@@ -72,6 +72,8 @@
72
72
 
73
73
  ここでpreview running aplicationとすると添付画像が出てエラーになります
74
74
 
75
+
76
+
75
- ![![イメージ説明](5851b11cb602db8c920f4bbd3b7c8587.png)](2db1659a9228b27e63c5121f5d637f3d.png)
77
+ ![イメージ説明](1ec7c78d3773db3a238ebadb1c3eb7c0.png)
76
78
 
77
79
  よろしくお願いいたします

1

記述修正

2019/09/03 00:35

投稿

Casablanca_mtg
Casablanca_mtg

スコア209

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,9 @@
8
8
 
9
9
  ruby=2.6.3
10
10
 
11
+ rails=6.0.0
12
+
11
- rails=6.0.0postgresql=9.6.11
13
+ postgresql=9.6.11
12
14
 
13
15
  homeview及びwebpackerやyarnをインストールしました
14
16