Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 使用Procfile将Springboot 2 RESTful应用程序部署到heroku_Spring Boot_Heroku_Procfile - Fatal编程技术网

Spring boot 使用Procfile将Springboot 2 RESTful应用程序部署到heroku

Spring boot 使用Procfile将Springboot 2 RESTful应用程序部署到heroku,spring-boot,heroku,procfile,Spring Boot,Heroku,Procfile,我尝试了许多配置,使用procfile将我的Restful Springboot 2应用程序部署到heroku,但都没有成功。我在这里尝试了一些建议/解决方案 Procfile: web:java$java\u OPTS-Dspring.profiles.active=stage-cp target/classes:target/libs/*com.rabbittab.RestFulApp Heroku日志: 2020-04-24T14:57:59.344561+00:00 heroku[路由器

我尝试了许多配置,使用procfile将我的Restful Springboot 2应用程序部署到heroku,但都没有成功。我在这里尝试了一些建议/解决方案

Procfile:
web:java$java\u OPTS-Dspring.profiles.active=stage-cp target/classes:target/libs/*com.rabbittab.RestFulApp

Heroku日志:
2020-04-24T14:57:59.344561+00:00 heroku[路由器]:at=error code=H10 desc=“App crash”method=GET path=“/”


非常感谢您的帮助。

-Dserver.port=$port
添加到程序文件中。

我认为问题在于你的应用程序没有绑定到Heroku提供的端口。

我认为你应该提供target/libs/*而不是target/dependency/*