質問編集履歴

5

追記

2020/01/03 07:52

投稿

babi-0105
babi-0105

スコア10

test CHANGED
File without changes
test CHANGED
@@ -510,7 +510,7 @@
510
510
 
511
511
  【結果】
512
512
 
513
- https://git.heroku.com/thawing-island-51898.gitを開いた結果
513
+ [リンク内容](https://git.heroku.com/thawing-island-51898.git)を開いた結果
514
514
 
515
515
  ![イメージ説明](be5a57be4ca30bb32d42275500bee6f9.png)
516
516
 

4

追記

2020/01/03 07:52

投稿

babi-0105
babi-0105

スコア10

test CHANGED
File without changes
test CHANGED
@@ -518,7 +518,7 @@
518
518
 
519
519
 
520
520
 
521
- このエラーで検索した結果たどり着いた記事(https://qiita.com/m-itoidcf/items/77d064147a32169b5449)を参考に進めたのですが、解決せずです。。
521
+ このエラーで検索した結果たどり着いた記事([リンク内容](https://qiita.com/m-itoidcf/items/77d064147a32169b5449))を参考に進めたのですが、解決せずです。。
522
522
 
523
523
 
524
524
 

3

追記

2020/01/03 07:51

投稿

babi-0105
babi-0105

スコア10

test CHANGED
File without changes
test CHANGED
@@ -174,7 +174,7 @@
174
174
 
175
175
 
176
176
 
177
- #追記
177
+ #追記
178
178
 
179
179
  $ git remote -v と $ git push heroku masterを行ったところ
180
180
 
@@ -217,3 +217,355 @@
217
217
  fatal: unable to access 'https://git.heroku.com/boiling-falls-6570.git/': The requested URL returned error: 403
218
218
 
219
219
  ```
220
+
221
+
222
+
223
+ #追記②
224
+
225
+ 記載されたurl(https://dashboard.heroku.com/apps/thawing-island-51898/deploy/heroku-git)の通り進めていったのですが、動かずです。。
226
+
227
+
228
+
229
+ コンソール結果は以下の通りです。
230
+
231
+ ```
232
+
233
+ ec2-user:~/environment (modify-README) $ cd ~/environment/hello_app/
234
+
235
+
236
+
237
+
238
+
239
+ ec2-user:~/environment/hello_app (modify-README) $ source <(curl -sL https://cdn.learnenough.com/heroku_install)
240
+
241
+ % Total % Received % Xferd Average Speed Time Time Time Current
242
+
243
+ Dload Upload Total Spent Left Speed
244
+
245
+ 100 25.9M 100 25.9M 0 0 52.2M 0 --:--:-- --:--:-- --:--:-- 52.2M
246
+
247
+ mv: cannot move ‘heroku’ to ‘/usr/local/heroku’: Directory not empty
248
+
249
+
250
+
251
+
252
+
253
+ ec2-user:~/environment/hello_app (modify-README) $ heroku login
254
+
255
+ heroku: Press any key to open up the browser to login or q to exit:
256
+
257
+ › Error: quit
258
+
259
+
260
+
261
+
262
+
263
+ ec2-user:~/environment/hello_app (modify-README) $ heroku login --interactive
264
+
265
+ heroku: Enter your login credentials
266
+
267
+ Email [epifa_kikka@icloud.com]:
268
+
269
+ Password: *********
270
+
271
+ Logged in as (メールアドレス)
272
+
273
+
274
+
275
+
276
+
277
+ ec2-user:~/environment/hello_app (modify-README) $ cd my-project/
278
+
279
+ bash: cd: my-project/: No such file or directory
280
+
281
+
282
+
283
+
284
+
285
+ ec2-user:~/environment/hello_app (modify-README) $ git init
286
+
287
+ Reinitialized existing Git repository in /home/ec2-user/environment/hello_app/.git/
288
+
289
+
290
+
291
+
292
+
293
+ ec2-user:~/environment/hello_app (modify-README) $ heroku git:remote -a thawing-island-51898
294
+
295
+ set git remote heroku to https://git.heroku.com/thawing-island-51898.git
296
+
297
+
298
+
299
+
300
+
301
+ ec2-user:~/environment/hello_app (modify-README) $ git add .
302
+
303
+
304
+
305
+
306
+
307
+ ec2-user:~/environment/hello_app (modify-README) $ git commit -am "make it better"
308
+
309
+ [modify-README a5f6bad] make it better
310
+
311
+ 3 files changed, 11 insertions(+), 22 deletions(-)
312
+
313
+
314
+
315
+
316
+
317
+ ec2-user:~/environment/hello_app (modify-README) $ git push heroku master
318
+
319
+ Counting objects: 13633, done.
320
+
321
+ Compressing objects: 100% (12359/12359), done.
322
+
323
+ Writing objects: 100% (13633/13633), 24.29 MiB | 3.25 MiB/s, done.
324
+
325
+ Total 13633 (delta 5265), reused 0 (delta 0)
326
+
327
+ remote: Compressing source files... done.
328
+
329
+ remote: Building source:
330
+
331
+ remote:
332
+
333
+ remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
334
+
335
+ remote: Detected buildpacks: Ruby,Node.js
336
+
337
+ remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
338
+
339
+ 1
340
+
341
+
342
+
343
+
344
+
345
+ 一部省略
346
+
347
+
348
+
349
+
350
+
351
+ remote: ###### WARNING:
352
+
353
+ remote:
354
+
355
+ remote: You have not declared a Ruby version in your Gemfile.
356
+
357
+ remote: To set your Ruby version add this line to your Gemfile:
358
+
359
+ remote: ruby '2.5.7'
360
+
361
+ remote: # See https://devcenter.heroku.com/articles/ruby-versions for more information.
362
+
363
+ remote:
364
+
365
+ remote:
366
+
367
+ remote: ###### WARNING:
368
+
369
+ remote:
370
+
371
+ remote: Replacing libpq with version libpq 5.12.1
372
+
373
+ remote:
374
+
375
+ remote: This version includes a bug fix that can cause an exception
376
+
377
+ remote: on boot for applications with incorrectly configured connection
378
+
379
+ remote: values. For more information see:
380
+
381
+ remote:
382
+
383
+ remote: https://devcenter.heroku.com/articles/libpq-5-12-1-breaking-connection-behavior
384
+
385
+ remote:
386
+
387
+ remote: If your application breaks you can rollback to your last build.
388
+
389
+ remote: You can also temporarially opt out of this behavior by setting:
390
+
391
+ remote:
392
+
393
+ remote: ```
394
+
395
+ remote: $ heroku config:set HEROKU_SKIP_LIBPQ12=1
396
+
397
+ remote: ```
398
+
399
+ remote:
400
+
401
+ remote: In the future libpq 5.12 will be the default on the platform an
402
+
403
+ remote: you will not be able to opt-out of the library. For more information see:
404
+
405
+ remote:
406
+
407
+ remote: https://devcenter.heroku.com/articles/libpq-5-12-1-breaking-connection-behavior
408
+
409
+ remote:
410
+
411
+ remote:
412
+
413
+ remote: ###### WARNING:
414
+
415
+ remote:
416
+
417
+ remote: Detecting rails configuration failed
418
+
419
+ remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
420
+
421
+ remote:
422
+
423
+ remote:
424
+
425
+ remote: ###### WARNING:
426
+
427
+ remote:
428
+
429
+ remote: No Procfile detected, using the default web server.
430
+
431
+ remote: We recommend explicitly declaring how to boot your server process via a Procfile.
432
+
433
+ remote: https://devcenter.heroku.com/articles/ruby-default-web-server
434
+
435
+ remote:
436
+
437
+ remote:
438
+
439
+ remote:
440
+
441
+ remote: -----> Discovering process types
442
+
443
+ remote: Procfile declares types -> (none)
444
+
445
+ remote: Default types for buildpack -> console, rake, web
446
+
447
+ remote:
448
+
449
+ remote: -----> Compressing...
450
+
451
+ remote: Done: 59.9M
452
+
453
+ remote: -----> Launching...
454
+
455
+ remote: Released v4
456
+
457
+ remote: https://thawing-island-51898.herokuapp.com/ deployed to Heroku
458
+
459
+ remote:
460
+
461
+ remote: Verifying deploy... done.
462
+
463
+ To https://git.heroku.com/thawing-island-51898.git
464
+
465
+ * [new branch] master -> master
466
+
467
+
468
+
469
+
470
+
471
+ ec2-user:~/environment/hello_app (modify-README) $ heroku git:remote -a thawing-island-51898
472
+
473
+ set git remote heroku to https://git.heroku.com/thawing-island-51898.git
474
+
475
+
476
+
477
+
478
+
479
+ ec2-user:~/environment/hello_app (modify-README) $ heroku logs --tail
480
+
481
+ › Error: Multiple apps in git remotes
482
+
483
+ › Usage: --remote heroku-staging
484
+
485
+ › or: --app boiling-falls-6570
486
+
487
+ › Your local git repository has more than 1 app referenced in git
488
+
489
+ › remotes.
490
+
491
+ › Because of this, we can't determine which app you want to run this
492
+
493
+ › command against.
494
+
495
+ › Specify the app you want with --app or --remote.
496
+
497
+ › Heroku remotes in repo:
498
+
499
+ › thawing-island-51898 (heroku)
500
+
501
+ › boiling-falls-6570 (heroku-staging)
502
+
503
+
504
+
505
+ › https://devcenter.heroku.com/articles/multiple-environments
506
+
507
+ ```
508
+
509
+
510
+
511
+ 【結果】
512
+
513
+ https://git.heroku.com/thawing-island-51898.gitを開いた結果
514
+
515
+ ![イメージ説明](be5a57be4ca30bb32d42275500bee6f9.png)
516
+
517
+ が表示されました。
518
+
519
+
520
+
521
+ このエラーで検索した結果たどり着いた記事(https://qiita.com/m-itoidcf/items/77d064147a32169b5449)を参考に進めたのですが、解決せずです。。
522
+
523
+
524
+
525
+ ```
526
+
527
+ $ heroku run rails console
528
+
529
+ ```
530
+
531
+
532
+
533
+ した際の結果がこちらです。
534
+
535
+
536
+
537
+ ```
538
+
539
+ › Error: Multiple apps in git remotes
540
+
541
+ › Usage: --remote heroku-staging
542
+
543
+ › or: --app boiling-falls-6570
544
+
545
+ › Your local git repository has more than 1 app referenced in git
546
+
547
+ › remotes.
548
+
549
+ › Because of this, we can't determine which app you want to run this
550
+
551
+ › command against.
552
+
553
+ › Specify the app you want with --app or --remote.
554
+
555
+ › Heroku remotes in repo:
556
+
557
+ › thawing-island-51898 (heroku)
558
+
559
+ › boiling-falls-6570 (heroku-staging)
560
+
561
+
562
+
563
+ › https://devcenter.heroku.com/articles/multiple-environments
564
+
565
+ ```
566
+
567
+
568
+
569
+ 情報が少ないかもしれないですが、追記の必要があればいっていただきたいです。
570
+
571
+ お願いします。

2

追記しました

2020/01/03 07:50

投稿

babi-0105
babi-0105

スコア10

test CHANGED
File without changes
test CHANGED
@@ -171,3 +171,49 @@
171
171
  追記すべき情報などございましたら、言っていただきたいと思います。
172
172
 
173
173
  回答お待ちしております。
174
+
175
+
176
+
177
+ #追記
178
+
179
+ $ git remote -v と $ git push heroku masterを行ったところ
180
+
181
+
182
+
183
+ $heroku createのURLでは同じく表示したいものが表示されませんでした。
184
+
185
+
186
+
187
+ 『does not have access to boiling-falls-6570.』と。
188
+
189
+ 僕のアカウントではアクセスできないとの事です。
190
+
191
+
192
+
193
+ ググったところ僕と同じエラーでの解決はみられなかったのですが、以下を参考にしました。
194
+
195
+ [リンク内容](https://qiita.com/m-shin/items/23a0cd58ca6d1e53b4ec)
196
+
197
+ しかし、解決せずです。
198
+
199
+ ```
200
+
201
+ ec2-user:~/environment/hello_app (modify-README) $ git remote -v
202
+
203
+ heroku https://git.heroku.com/boiling-falls-6570.git (fetch)
204
+
205
+ heroku https://git.heroku.com/boiling-falls-6570.git (push)
206
+
207
+ origin git@bitbucket.org:(ここはユーザー名です)/toy_app.git (fetch)
208
+
209
+ origin git@bitbucket.org:(ここはユーザー名です)/toy_app.git (push)
210
+
211
+
212
+
213
+ ec2-user:~/environment/hello_app (modify-README) $ git push heroku master
214
+
215
+ remote: ! Your account (メールアドレスです) does not have access to boiling-falls-6570.
216
+
217
+ fatal: unable to access 'https://git.heroku.com/boiling-falls-6570.git/': The requested URL returned error: 403
218
+
219
+ ```

1

リンクの挿入

2019/12/31 08:32

投稿

babi-0105
babi-0105

スコア10

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  #自分で調べたことや試したこと
30
30
 
31
- ①https://qiita.com/m-itoidcf/items/77d064147a32169b5449
31
+ [リンク内容](https://qiita.com/m-itoidcf/items/77d064147a32169b5449)
32
32
 
33
33
  の記事を参考に```$ heroku logs | grep error ```で確認したところ
34
34
 
@@ -42,7 +42,7 @@
42
42
 
43
43
 
44
44
 
45
- ②https://qiita.com/rebi/items/efd1c36f0a9e46222d80
45
+ [リンク内容](https://qiita.com/rebi/items/efd1c36f0a9e46222d80)
46
46
 
47
47
  を参考に進めたところ
48
48