我正在使用heroku托管一个grails应用程序。我已经启动并运行了应用程序,只添加了一个新的控制器方法,然后重新部署。部署成功,没有出现错误或奇怪的警告消息,但现在应用程序失败了。
以下是日志:
heroku[slugc]: Slug compilation started
heroku[api]: Deploy 02ebfa1 by x@gmail.com
heroku[api]: Release v35 created by x@gmail.com
heroku[api]: Deploy 02ebfa1 by x@gmail.com
heroku[web.1]: State chang
我正在使用jetty-runner.jar将Spring应用程序部署到Heroku,但是在部署过程中出现了一个错误。Heroku日志只显示:
Error: unable to access jarfile target/dependency/jetty-runner.jar
State changed from starting to crashed
Process exited with status 1
但是,如果我使用以下两种方法在本地运行该应用程序,则该应用程序工作正常:
heroku local web -f Procfile.windows
或
java -jar target\d
部署到heroku时,确切的maven错误消息是:
No versions available for org.codehaus.jackson:jackson-mapper-asl:jar:[1.9,1.9.9] within specified range
我相信这个问题与这个和这个Jackson存储库maven-metadata.xml 有关。
maven部署日志中的以下条目表明jackson-mapper-asl 1.9.9正在从heroku maven存储库中下载:
Downloaded: http://s3pository.heroku.com/jvm/org/codehaus/j
我使用Heroku使用PostgreSQL数据库部署Spring java应用程序。链接到数据库运行良好,PostgreSQL已成功初始化。
部署成功,没有任何错误或奇怪的警告消息,但现在应用程序失败了。
以下是日志:
heroku[web.1]: State changed from crashed to starting
heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dspring.profiles.active="datajpa,heroku" -DMISIC_ROOT=
问题是当我在Heroku上部署项目时
heroku local web
它将显示以下内容
C:\Users\Richer\OneDrive\Project>heroku local web
5:22:24 PM web.1 | Error: Could not find or load main class $JAVA_OPTS
[DONE] Killing all processes with signal SIGINT
5:22:25 PM web.1 Exited with exit code null
如果我跑了
heroku ps
外壳将会显示
C:\Users\Riche
我正在尝试在Heroku中托管一个java-web应用程序。首先,我在一个maven项目中转换了我的应用程序,然后我添加了依赖项,但是当我尝试部署应用程序时,heroku说“无法解析以下工件: com.oracle.jdbc:ojdbc8:jar:12.2.0.1,javax.sql:jdbc-stdext:jar:2.0: say not find artifact com.oracle.jdbc:ojdbc8:jar:12.2.0.1 in central”我已经尝试在pom.xml中手动添加依赖项,但错误仍然没有解决。 pom.xml Heroku log
我试图在Heroku上部署我的web服务,这是一个Spring Boot项目(Java),当我尝试推送到Heroku时,它给了我以下错误:
Fetching custom git buildpack... done
remote:
remote: ! Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote: to use for this application automatically