質問編集履歴

2

実行したコマンド、エラー文を追加しました

2020/09/16 14:12

投稿

nose
nose

スコア6

test CHANGED
File without changes
test CHANGED
@@ -84,9 +84,91 @@
84
84
 
85
85
 
86
86
 
87
-
88
-
89
- ```
87
+ ```
88
+
89
+
90
+
91
+ ```
92
+
93
+ Enumerating objects: 243, done.
94
+
95
+ Counting objects: 100% (243/243), done.
96
+
97
+ Delta compression using up to 4 threads
98
+
99
+ Compressing objects: 100% (241/241), done.
100
+
101
+ Writing objects: 100% (243/243), 54.89 MiB | 468.00 KiB/s, done.
102
+
103
+ Total 243 (delta 56), reused 0 (delta 0), pack-reused 0
104
+
105
+ remote: Compressing source files... done.
106
+
107
+ remote: Building source:
108
+
109
+ remote:
110
+
111
+ remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-java.git
112
+
113
+ remote: Could not find a pom.xml file! Please check that it exists and is committed to Git.
114
+
115
+ remote:
116
+
117
+ remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
118
+
119
+ remote:
120
+
121
+ remote: ! Push failed
122
+
123
+ remote: !
124
+
125
+ remote: ! ## Warning - The same version of this code has already been built: 079df62c0b83ab8fdf879e5b902b03946b20e409
126
+
127
+ remote: !
128
+
129
+ remote: ! We have detected that you have triggered a build from source code with version 079df62c0b83ab8fdf879e5b902b03946b20e409
130
+
131
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
132
+
133
+ remote: !
134
+
135
+ remote: ! If you are developing on a branch and deploying via git you must run:
136
+
137
+ remote: !
138
+
139
+ remote: ! git push heroku <branchname>:main
140
+
141
+ remote: !
142
+
143
+ remote: ! This article goes into details on the behavior:
144
+
145
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
146
+
147
+ remote:
148
+
149
+ remote: Verifying deploy...
150
+
151
+ remote:
152
+
153
+ remote: ! Push rejected to secure-escarpment-48703.
154
+
155
+ remote:
156
+
157
+ To https://git.heroku.com/secure-escarpment-48703.git
158
+
159
+ ! [remote rejected] master -> master (pre-receive hook declined)
160
+
161
+ error: failed to push some refs to 'https://git.heroku.com/secure-escarpment-48703.git'
162
+
163
+
164
+
165
+
166
+
167
+ ```
168
+
169
+
170
+
171
+
90
172
 
91
173
 
92
174
 
@@ -114,6 +196,16 @@
114
196
 
115
197
  $ git push heroku master
116
198
 
199
+
200
+
201
+ $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-java.git
202
+
203
+ Buildpack set. Next release on secure-escarpment-48703 will use https://github.com/heroku/heroku-buildpack-java.git.
204
+
205
+ Run git push heroku main to create a new release using this buildpack.
206
+
207
+
208
+
117
209
  ```
118
210
 
119
211
 

1

記述不足を補いました

2020/09/16 14:12

投稿

nose
nose

スコア6

test CHANGED
File without changes
test CHANGED
@@ -106,6 +106,14 @@
106
106
 
107
107
  $ heroku git:remote -a アプリ名
108
108
 
109
+
110
+
111
+ $ git add .
112
+
113
+ $ git commit -m "first commit"
114
+
115
+ $ git push heroku master
116
+
109
117
  ```
110
118
 
111
119