質問編集履歴
4
bundle installコマンドの後の エラー文
test
CHANGED
File without changes
|
test
CHANGED
@@ -343,3 +343,35 @@
|
|
343
343
|
|
344
344
|
|
345
345
|
最後に赤文字で、"failed to install gems via Bundler"の文字がエラーとして出ている状況です
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
Bundle installをコマンドした後のエラー内容
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
```
|
354
|
+
|
355
|
+
Yoshihiros-MacBook-Pro:sample_tweetapp yoshi$ bundle install
|
356
|
+
|
357
|
+
Fetching source index from https://rubygems.org/
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to rubygems.org:443 (Connection refused - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to rubygems.org:443 (Connection refused - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to rubygems.org:443 (Connection refused - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
Could not fetch specs from https://rubygems.org/ due to underlying error <Errno::ECONNREFUSED: Failed to open TCP connection to
|
374
|
+
|
375
|
+
rubygems.org:443 (Connection refused - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)>
|
376
|
+
|
377
|
+
```
|
3
エラーの更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -271,3 +271,75 @@
|
|
271
271
|
|
272
272
|
|
273
273
|
```
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
8/19 18:45現在のエラー表記 (最新、sqliteに関するエラーはクリアした模様)
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
remote: You have deleted from the Gemfile:
|
282
|
+
|
283
|
+
remote: * sqlite3 (~> 1.4)
|
284
|
+
|
285
|
+
remote: Bundler Output: You are trying to install in deployment mode after changing
|
286
|
+
|
287
|
+
remote: your Gemfile. Run `bundle install` elsewhere and add the
|
288
|
+
|
289
|
+
remote: updated Gemfile.lock to version control.
|
290
|
+
|
291
|
+
remote:
|
292
|
+
|
293
|
+
remote: If this is a development machine, remove the /tmp/build_d55761f7/Gemfile freeze
|
294
|
+
|
295
|
+
remote: by running ``.
|
296
|
+
|
297
|
+
remote:
|
298
|
+
|
299
|
+
remote: The dependencies in your gemfile changed
|
300
|
+
|
301
|
+
remote:
|
302
|
+
|
303
|
+
remote: You have added to the Gemfile:
|
304
|
+
|
305
|
+
remote: * pg (~> 1.1)
|
306
|
+
|
307
|
+
remote:
|
308
|
+
|
309
|
+
remote: You have deleted from the Gemfile:
|
310
|
+
|
311
|
+
remote: * sqlite3 (~> 1.4)
|
312
|
+
|
313
|
+
remote:
|
314
|
+
|
315
|
+
remote: !
|
316
|
+
|
317
|
+
remote: ! Failed to install gems via Bundler.
|
318
|
+
|
319
|
+
remote: !
|
320
|
+
|
321
|
+
remote: ! Push rejected, failed to compile Ruby app.
|
322
|
+
|
323
|
+
remote:
|
324
|
+
|
325
|
+
remote: ! Push failed
|
326
|
+
|
327
|
+
remote: Verifying deploy...
|
328
|
+
|
329
|
+
remote:
|
330
|
+
|
331
|
+
remote: ! Push rejected to sample77tweetapp.
|
332
|
+
|
333
|
+
remote:
|
334
|
+
|
335
|
+
To https://git.heroku.com/sample77tweetapp.git
|
336
|
+
|
337
|
+
! [remote rejected] master -> master (pre-receive hook declined)
|
338
|
+
|
339
|
+
error: failed to push some refs to 'https://git.heroku.com/sample77tweetapp.git'
|
340
|
+
|
341
|
+
```
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
最後に赤文字で、"failed to install gems via Bundler"の文字がエラーとして出ている状況です
|
2
gemfile, database.ymlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -77,3 +77,197 @@
|
|
77
77
|
|
78
78
|
|
79
79
|
どうぞ宜しくお願い致します。。
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
追加内容
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
Gemfile
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
source "https://rubygems.org"
|
92
|
+
|
93
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
ruby "3.0.2"
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
|
102
|
+
|
103
|
+
gem "rails", "~> 6.1.4"
|
104
|
+
|
105
|
+
# Use sqlite3 as the database for Active Record
|
106
|
+
|
107
|
+
gem "sqlite3", group: :development
|
108
|
+
|
109
|
+
gem "pg", group: :production
|
110
|
+
|
111
|
+
# Use Puma as the app server
|
112
|
+
|
113
|
+
gem "puma", "~> 5.0"
|
114
|
+
|
115
|
+
# Use SCSS for stylesheets
|
116
|
+
|
117
|
+
gem "sass-rails", ">= 6"
|
118
|
+
|
119
|
+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
120
|
+
|
121
|
+
gem "webpacker", "~> 5.0"
|
122
|
+
|
123
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
124
|
+
|
125
|
+
gem "turbolinks", "~> 5"
|
126
|
+
|
127
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
128
|
+
|
129
|
+
gem "jbuilder", "~> 2.7"
|
130
|
+
|
131
|
+
# Use Redis adapter to run Action Cable in production
|
132
|
+
|
133
|
+
# gem 'redis', '~> 4.0'
|
134
|
+
|
135
|
+
# Use Active Model has_secure_password
|
136
|
+
|
137
|
+
gem "bcrypt", "~> 3.1.11"
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
# Use Active Storage variant
|
142
|
+
|
143
|
+
# gem 'image_processing', '~> 1.2'
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
# Reduces boot times through caching; required in config/boot.rb
|
148
|
+
|
149
|
+
gem "bootsnap", ">= 1.4.4", require: false
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
group :development, :test do
|
154
|
+
|
155
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
156
|
+
|
157
|
+
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
|
158
|
+
|
159
|
+
end
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
group :development do
|
164
|
+
|
165
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
166
|
+
|
167
|
+
gem "web-console", ">= 4.1.0"
|
168
|
+
|
169
|
+
# Display performance information such as SQL time and flame graphs for each request in your browser.
|
170
|
+
|
171
|
+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
|
172
|
+
|
173
|
+
gem "rack-mini-profiler", "~> 2.0"
|
174
|
+
|
175
|
+
gem "listen", "~> 3.3"
|
176
|
+
|
177
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
178
|
+
|
179
|
+
gem "spring"
|
180
|
+
|
181
|
+
end
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
group :test do
|
186
|
+
|
187
|
+
# Adds support for Capybara system testing and selenium driver
|
188
|
+
|
189
|
+
gem "capybara", ">= 3.26"
|
190
|
+
|
191
|
+
gem "selenium-webdriver"
|
192
|
+
|
193
|
+
# Easy installation and use of web drivers to run system tests with browsers
|
194
|
+
|
195
|
+
gem "webdrivers"
|
196
|
+
|
197
|
+
end
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
202
|
+
|
203
|
+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
gem "pry-rails"
|
208
|
+
|
209
|
+
```
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
database.yml
|
214
|
+
|
215
|
+
```
|
216
|
+
|
217
|
+
# SQLite. Versions 3.8.0 and up are supported.
|
218
|
+
|
219
|
+
# gem install sqlite3
|
220
|
+
|
221
|
+
#
|
222
|
+
|
223
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
224
|
+
|
225
|
+
# gem 'sqlite3'
|
226
|
+
|
227
|
+
#
|
228
|
+
|
229
|
+
default: &default
|
230
|
+
|
231
|
+
adapter: sqlite3
|
232
|
+
|
233
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
234
|
+
|
235
|
+
timeout: 5000
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
development:
|
240
|
+
|
241
|
+
<<: *default
|
242
|
+
|
243
|
+
database: db/development.sqlite3
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
# Warning: The database defined as "test" will be erased and
|
248
|
+
|
249
|
+
# re-generated from your development database when you run "rake".
|
250
|
+
|
251
|
+
# Do not set this db to the same as development or production.
|
252
|
+
|
253
|
+
test:
|
254
|
+
|
255
|
+
<<: *default
|
256
|
+
|
257
|
+
database: db/test.sqlite3
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
production:
|
262
|
+
|
263
|
+
<<: *default
|
264
|
+
|
265
|
+
adapter: postgresql
|
266
|
+
|
267
|
+
encoding: unicode
|
268
|
+
|
269
|
+
pool: 5
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
```
|
1
参考urlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,6 +60,10 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
https://qiita.com/hmmrjn/items/e2dff8036fbbd74f049a
|
64
|
+
|
65
|
+
|
66
|
+
|
63
67
|
です。
|
64
68
|
|
65
69
|
|