java - Heroku cannot detect the buildpack - Spring Boot -


i'm trying deploy web service on heroku spring boot project (java) , gives me following error when try push heroku:

fetching custom git buildpack... done remote:  remote:  !     push rejected, no cedar-supported app detected remote: hint: occurs when heroku cannot detect buildpack remote:       use application automatically. remote: see https://devcenter.heroku.com/articles/buildpacks 

i tried using custom build pack of java still doesn't work. have idea on how can fix this. appreciated.

i have jetty-runner dependency , plugin. created procfile defined following:

web: java $java_opts -jar target/dependency/jetty-runner.jar --port $port target/*.war 

my directory project follows (i don't know if matters):

-root   |___projectdirectory   |        |____code...   |        |____procfile   |___readme 

i had, believe, same problem , caused git root directory not being same project root. project structure:

-gitroot   |___projectdirectory            |____code...            |____procfile            |____pom.xml  

because using git push heroku master or similar, heroku (upon receiving our project) assumes root directory of git root directory of project. looks in gitroot pom.xml , procfile. when doesn't find them, see our familiar error.

i moved .git folder , .gitignore file projectdirectory , ran:

git add . -a git commit -m "move git root down project root." mvn clean install git push heroku master 

that worked treat, don't forget update .gitignore file , clear cache before committing next. new project structure looked this.

projectdirectory            |____code...            |____procfile            |____pom.xml 

in above projectdirectory git root directory.

i hope finds helpful.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -