在线有很多关于将Web应用程序(war文件)部署到Bluemix的说明,但是我找不到任何关于部署独立java应用程序的文档,这些文档的运行类似于以下内容:
java -jar myapp.jar
Runnable jar support was recently just introduced so you can do this.
All you need to do is have a jar that has a Main
method and it will run.
cf push myappname -p myjarname.jar
(replacing myappname with a name for your app) Note: If you jar doesn't listen for web traffic your push command should be what is below. This allows the jar to start but not listen for web traffic.
cf push myappname -p myjarname.jar --no-route
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.