【发布时间】:2015-12-09 06:23:24
【问题描述】:
我正在阅读 Heroku Java 入门,但在本地运行示例应用程序时遇到问题。
https://devcenter.heroku.com/articles/getting-started-with-java#run-the-app-locally https://devcenter.heroku.com/articles/getting-started-with-java#define-a-procfile
运行后,我得到“在端口 5000 上启动 web.1”,但是当我打开 localhost:5000 时,它只是给我“此网页不可用。”
这是 CLI 的输出
$ heroku local web -f Procfile.windows
forego | starting web.1 on port 5000
web.1 | Usage: java [-options] class [args...]
web.1 | in the version search
web.1 | show splash screen with specified image
web.1 |
如果您需要更多信息,请告诉我。
更新:所以我实际上是自己运行命令,当我意识到,这就是 Procfile 所做的一切,我得到的最后一行是
sh.exe": target\dependency\*: No such file or directory
这显然是由 mvn clean install 制作的目标\依赖项? 我打错了什么?
$ java -cp target\classes;"target\dependency\*" Main
【问题讨论】: