質問編集履歴
4
rubyのバージョンを合わせエラーログが変化した為
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,57 +5,14 @@
|
|
5
5
|
|
6
6
|
### 該当のソースコード
|
7
7
|
git push heroku main(入力コマンド)
|
8
|
-
Enumerating objects: 322, done.
|
9
|
-
Counting objects: 100% (322/322), done.
|
10
|
-
Delta compression using up to 8 threads
|
11
|
-
Compressing objects: 100% (299/299), done.
|
12
|
-
Writing objects: 100% (322/322), 2.45 MiB | 811.00 KiB/s, done.
|
13
|
-
Total 322 (delta 52), reused 0 (delta 0), pack-reused 0
|
14
|
-
remote: Compressing source files... done.
|
15
|
-
|
8
|
+
ーーーーー省略ーーーーーー
|
16
|
-
remote:
|
17
|
-
remote: -----> Building on the Heroku-18 stack
|
18
|
-
remote: -----> Using buildpack: heroku/ruby
|
19
|
-
remote: -----> Ruby app detected
|
20
|
-
remote: -----> Installing bundler 1.17.3
|
21
|
-
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
|
22
|
-
remote: -----> Compiling Ruby/Rails
|
23
|
-
remote: -----> Using Ruby version: ruby-2.6.3
|
24
|
-
remote: -----> Installing dependencies using bundler 1.17.3
|
25
|
-
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4
|
26
|
-
remote: Your Ruby version is 2.6.3, but your Gemfile specified 2.7.6
|
27
|
-
remote: Bundler Output: Your Ruby version is 2.6.3, but your Gemfile specified 2.7.6
|
28
9
|
remote:
|
29
10
|
remote: !
|
30
11
|
remote: ! Failed to install gems via Bundler.
|
31
|
-
remote: ! Detected a mismatch between your Ruby version installed and
|
32
|
-
remote: ! Ruby version specified in Gemfile or Gemfile.lock. You can
|
33
|
-
remote: ! correct this by running:
|
34
|
-
remote: !
|
35
|
-
remote: ! $ bundle update --ruby
|
36
|
-
remote: ! $ git add Gemfile.lock
|
37
|
-
remote: ! $ git commit -m "update ruby version"
|
38
|
-
remote: !
|
39
|
-
remote: ! If this does not solve the issue please see this documentation:
|
40
|
-
remote: !
|
41
|
-
remote: ! https://devcenter.heroku.com/articles/ruby-versions#your-ruby-version-is-x-but-your-gemfile-specified-y
|
42
12
|
remote: !
|
43
13
|
remote: ! Push rejected, failed to compile Ruby app.
|
44
14
|
remote:
|
45
15
|
remote: ! Push failed
|
46
|
-
remote: !
|
47
|
-
remote: ! ## Warning - The same version of this code has already been built: f50e6ade769bde1e938fd50abe78b5bea9123576
|
48
|
-
remote: !
|
49
|
-
remote: ! We have detected that you have triggered a build from source code with version f50e6ade769bde1e938fd50abe78b5bea9123576
|
50
|
-
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
|
51
|
-
remote: !
|
52
|
-
remote: ! If you are developing on a branch and deploying via git you must run:
|
53
|
-
remote: !
|
54
|
-
remote: ! git push heroku <branchname>:main
|
55
|
-
remote: !
|
56
|
-
remote: ! This article goes into details on the behavior:
|
57
|
-
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
|
58
|
-
remote:
|
59
16
|
remote: Verifying deploy....
|
60
17
|
remote:
|
61
18
|
remote: ! Push rejected to application2022ok.
|
@@ -64,10 +21,7 @@
|
|
64
21
|
! [remote rejected] main -> main (pre-receive hook declined)
|
65
22
|
error: failed to push some refs to 'https://git.heroku.com/application2022ok.git'
|
66
23
|
|
67
|
-
$ bundle update --ruby
|
68
|
-
$ git add Gemfile.lock
|
69
|
-
$ git commit -m "update ruby version"
|
70
|
-
上記の
|
24
|
+
上記のエラ〜ログが出たのですが、原因追求の方法を教えていただければと思います。
|
71
25
|
|
72
26
|
以前作成したPFをGithubからダウンロードしローカル環境に落としてデプロイしようとしています。
|
73
27
|
git push heroku main
|
3
heroku buildpacks:set heroku/rubyのコマンド実行後エラー分が変化
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,15 +9,37 @@
|
|
9
9
|
Counting objects: 100% (322/322), done.
|
10
10
|
Delta compression using up to 8 threads
|
11
11
|
Compressing objects: 100% (299/299), done.
|
12
|
-
Writing objects: 100% (322/322), 2.45 MiB | 1.
|
12
|
+
Writing objects: 100% (322/322), 2.45 MiB | 811.00 KiB/s, done.
|
13
13
|
Total 322 (delta 52), reused 0 (delta 0), pack-reused 0
|
14
14
|
remote: Compressing source files... done.
|
15
15
|
remote: Building source:
|
16
16
|
remote:
|
17
|
-
remote: -----> Building on the Heroku-
|
17
|
+
remote: -----> Building on the Heroku-18 stack
|
18
|
-
remote: -----> Using buildpack: h
|
18
|
+
remote: -----> Using buildpack: heroku/ruby
|
19
19
|
remote: -----> Ruby app detected
|
20
|
+
remote: -----> Installing bundler 1.17.3
|
21
|
+
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
|
22
|
+
remote: -----> Compiling Ruby/Rails
|
23
|
+
remote: -----> Using Ruby version: ruby-2.6.3
|
24
|
+
remote: -----> Installing dependencies using bundler 1.17.3
|
25
|
+
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4
|
26
|
+
remote: Your Ruby version is 2.6.3, but your Gemfile specified 2.7.6
|
27
|
+
remote: Bundler Output: Your Ruby version is 2.6.3, but your Gemfile specified 2.7.6
|
28
|
+
remote:
|
29
|
+
remote: !
|
30
|
+
remote: ! Failed to install gems via Bundler.
|
31
|
+
remote: ! Detected a mismatch between your Ruby version installed and
|
32
|
+
remote: ! Ruby version specified in Gemfile or Gemfile.lock. You can
|
33
|
+
remote: ! correct this by running:
|
34
|
+
remote: !
|
35
|
+
remote: ! $ bundle update --ruby
|
36
|
+
remote: ! $ git add Gemfile.lock
|
37
|
+
remote: ! $ git commit -m "update ruby version"
|
38
|
+
remote: !
|
39
|
+
remote: ! If this does not solve the issue please see this documentation:
|
40
|
+
remote: !
|
20
|
-
remote:
|
41
|
+
remote: ! https://devcenter.heroku.com/articles/ruby-versions#your-ruby-version-is-x-but-your-gemfile-specified-y
|
42
|
+
remote: !
|
21
43
|
remote: ! Push rejected, failed to compile Ruby app.
|
22
44
|
remote:
|
23
45
|
remote: ! Push failed
|
@@ -42,9 +64,14 @@
|
|
42
64
|
! [remote rejected] main -> main (pre-receive hook declined)
|
43
65
|
error: failed to push some refs to 'https://git.heroku.com/application2022ok.git'
|
44
66
|
|
45
|
-
|
67
|
+
$ bundle update --ruby
|
68
|
+
$ git add Gemfile.lock
|
69
|
+
$ git commit -m "update ruby version"
|
70
|
+
上記のコマンドを打っても変わらない状況です。
|
46
71
|
|
47
72
|
以前作成したPFをGithubからダウンロードしローカル環境に落としてデプロイしようとしています。
|
48
73
|
git push heroku main
|
49
74
|
まではスムーズに行けたのですがここでエラーが出ました。
|
50
75
|
|
76
|
+
必要コードがわからない為、GitのリポジトリURLを以下に記載します。
|
77
|
+
https://github.com/yamamoto-hirofumi/Application
|
2
$ heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2を入力しエラー内容が変わった
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,38 +9,15 @@
|
|
9
9
|
Counting objects: 100% (322/322), done.
|
10
10
|
Delta compression using up to 8 threads
|
11
11
|
Compressing objects: 100% (299/299), done.
|
12
|
-
Writing objects: 100% (322/322), 2.45 MiB | 1.5
|
12
|
+
Writing objects: 100% (322/322), 2.45 MiB | 1.50 MiB/s, done.
|
13
13
|
Total 322 (delta 52), reused 0 (delta 0), pack-reused 0
|
14
14
|
remote: Compressing source files... done.
|
15
15
|
remote: Building source:
|
16
16
|
remote:
|
17
17
|
remote: -----> Building on the Heroku-22 stack
|
18
|
-
remote: -----> Determining which buildpack to use for this app
|
19
|
-
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
|
20
|
-
remote: Detected buildpacks: Ruby,Node.js
|
21
|
-
remote:
|
18
|
+
remote: -----> Using buildpack: https://github.com/bundler/heroku-buildpack-bundler2
|
22
19
|
remote: -----> Ruby app detected
|
23
|
-
remote:
|
24
|
-
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
|
25
|
-
remote: -----> Compiling Ruby/Rails
|
26
|
-
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://heroku-buildpack-ruby.s3.us-east-1.amazonaws.com/heroku-22/ruby-2.6.3.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
|
27
|
-
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://heroku-buildpack-ruby.s3.us-east-1.amazonaws.com/heroku-22/ruby-2.6.3.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
|
28
|
-
remote:
|
29
|
-
remote: !
|
30
|
-
remote: ! The Ruby version you are trying to install does not exist on this stack.
|
31
|
-
remote: !
|
32
|
-
remote: ! You are trying to install ruby-2.6.3 on heroku-22.
|
33
|
-
remote: !
|
34
|
-
remote: ! Ruby ruby-2.6.3 is present on the following stacks:
|
35
|
-
remote: !
|
36
|
-
remote: ! - heroku-18
|
37
|
-
remote: !
|
38
|
-
remote: ! Heroku recommends you use the latest supported Ruby version listed here:
|
39
|
-
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
|
40
|
-
remote: !
|
41
|
-
remote: ! For more information on syntax for declaring a Ruby version see:
|
42
|
-
remote: ! https://devcenter.heroku.com/articles/ruby-versions
|
43
|
-
remote: !
|
20
|
+
remote: This buildpack is no longer supported, please use 'heroku/ruby' which now supports Bundler 2 directly
|
44
21
|
remote: ! Push rejected, failed to compile Ruby app.
|
45
22
|
remote:
|
46
23
|
remote: ! Push failed
|
@@ -67,7 +44,6 @@
|
|
67
44
|
|
68
45
|
|
69
46
|
|
70
|
-
|
71
47
|
以前作成したPFをGithubからダウンロードしローカル環境に落としてデプロイしようとしています。
|
72
48
|
git push heroku main
|
73
49
|
まではスムーズに行けたのですがここでエラーが出ました。
|
1
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Herokuでデプロイする際のエラー
|
1
|
+
Herokuでデプロイする際のgit push heroku main コマンドでエラーについて
|
test
CHANGED
File without changes
|