我有一个带有gradle和spring引导的java项目,我想将其部署到Heroku。
我在本地使用myApp.war创建了gradle war (我必须在本地部署,因为我使用的是本地库)。战争已经成功创建,但当我试图部署到Heroku heroku war:deploy myApp.war --app appName时,我收到了以下错误:
! ERROR: Your buildpacks do not contain the heroku/jvm buildpack!Add heroku/jvm to your buildpack configuration or run `heroku
我有一个多模块的项目。其中一个模块是android应用程序,另一个是我试图在Heroku上运行的基于spring引导的服务器。我首先安装了android应用程序,然后在他们的站点上添加了Heroku模块。在IntelliJ (作为应用程序)中,服务器在本地运行良好,但是当部署到Heroku或通过heroku local web在本地运行时,服务器会在启动时崩溃:
sun.reflect.NativeMethodAccessorImpl.invoke0(Native方法中线程"main“java.lang.reflect.InvocationTargetException中的异常)在su
我使用heroku cli来部署我的应用程序时,我点击命令git推heroku主人它给我的
remote: [ERROR] Failed to execute goal on project microoracle-final: Could not resolve dependencies for project com.oraclefinal:microoracle-final:jar:0.0.1-SNAPSHOT: Could not find artifact com.oracle:ojdbc7:jar:12.1.0 in central (https://repo.mav
-----> Gradle app detected
-----> Spring Boot detected
-----> Installing JDK 1.8... done
-----> Building Gradle app...
-----> executing ./gradlew build -x test
/usr/bin/env: ‘sh\r’: No such file or directory
! ERROR: Failed to run Gradle!
We're sorry this build
我目前正在努力使用mvn heroku:deploy部署Spring Boot应用程序。当我第一次尝试它时,我得到了以下错误消息:
[ERROR] Failed to execute goal com.heroku.sdk:heroku-maven-plugin:2.0.6:deploy (default-cli) on project <APP_NAME>: Failed to deploy application: Your buildpacks do not contain the heroku/jvm buildpack!Add heroku/jvm to your bui
所以我想把我的应用程序部署到Heroku。这是我的船坞-Compose.yml
version: '3'
#Define services
services:
#Back-end Spring Boot Application
entaurais:
#The docker file in scrum-app build the jar and provides the docker image with the following name.
build: ./entauraIS
container_name: backend
#En
我正在尝试将我的Spring Boot应用程序部署到Heroku,但我一直收到:
2018-05-06T14:41:35.181889+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
2018-05-06T14:41:35.182093+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-05-06T14:41:35.482221+00:00 herok
我正在用Kotlin学习spring引导(因为我来自Android和Kotlin)。我和gradle一起安排的。在我的本地机器里一切都很好。但是我在尝试把它部署到Heroku的时候遇到了一些问题。
这是我正在犯的错误:
Error: Main method not found in class com.markoid.packit.PackitApplication, please define the main method as:
2021-07-01T20:58:51.075484+00:00 app[web.1]: public static void main(String[]