【发布时间】:2020-08-15 07:59:23
【问题描述】:
我正在将一个 war 文件部署到 heroku 并希望将额外的 properties 文件包含到 slug 中,如下所述:
Configuring WAR Deployment with the Heroku CLI
$ heroku war:deploy application.war --app awesomeapp --jdk 14 --includes app1.properties
它成功部署了war 文件,但是在扩展应用程序的任何子文件夹中我都找不到app1.properties 文件。同时,war 存档中的所有其他文件都在它们的位置,额外的tomcat war-tracker 文件,仅此而已。我尝试添加一些具有相同结果的jar 文件:
$ heroku war:deploy application.war --app awesomeapp --jdk 14 --includes app1.properties:some-lib.jar
问题: heroku 在哪里包含附加文件?如何进入那里?
这是heroku-cli的输出:
Uploading application.war
-----> Packaging application...
- app: awesomeapp
- including: app1.properties
- including: some-lib.jar
- including: webapp-runner.jar
- including: application.war
-----> Creating build...
- file: slug.tgz
- size: 30MB
-----> Uploading build...
- success
-----> Deploying...
remote:
remote: -----> heroku-deploy app detected
remote: -----> Installing JDK 14... done
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 96.9M
remote: -----> Launching...
remote: Released v14
remote: https://awesomeapp.herokuapp.com/ deployed to Heroku
remote:
-----> Done
【问题讨论】:
标签: java heroku deployment war