简体   繁体   English

在OpenShift上运行Vertx模块

[英]Running Vertx module on OpenShift

I had a simple Vertx application with one class which I executed with 我有一个带有一个类的简单Vertx应用程序,我用

nohup bash -c "exec 'vertx' 'run' './src/main/java/com/mydomain/myClass.java' ...

in ./.openshift/action_hooks/start. 在./.openshift/action_hooks/start中。 Now I have a module which can be run locally with vertx runmod, but 现在我有了一个可以在vertx runmod本地运行的模块,但是

nohup bash -c "exec 'vertx' 'runmod' './src/main/java/com/mydomain/mods/user~HelloWorlldApp~0.1.27' ...

in my start file seems not to work. 在我的启动文件中似乎无法正常工作。 No errors, java just does not start. 没有错误,java只是无法启动。

How must it be run? 必须如何运行?

You need check that you use values of $OPENSHIFT_DIY_IP and $OPENSHIFT_DIY_PORT for bind you vertx server. 您需要检查是否使用$ OPENSHIFT_DIY_IP$ OPENSHIFT_DIY_PORT的值绑定vertx服务器。 For example in ssh console execute: 例如在ssh控制台中执行:

echo $OPENSHIFT_DIY_IP
echo $OPENSHIFT_DIY_PORT

end put this values in 最后把这个值放在

vertx.createHttpServer().listen(8080, "127.2.47.2");

Also typical start for vertx module in zip is zip中vertx模块的典型开始是

nohup bash -c "exec 'vertx' 'runzip' 'helloWorldApp-0.1.24-mod.zip' ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM