Hello i'm newby in Vertx. Today i implemented very simple vertx app with python But it is not working
你好,我是Vertx的newby。今天,我用python实现了非常简单的vertx应用程序,但它不起作用。
Here is python code
这是python代码
web_server_conf = {
'port' : 8080,
'host' : 'localhost'
}
# Start the web server, with the config we defined above
import vertx
vertx.deploy_verticle('vertx.web-server-v1.0', web_server_conf)
But i got a error like below
但是我有下面的错误。
C:\dev\tools\vert.x-1.3.0.final>vertx run app.py Cannot find verticle vertx.web-server-v1.0
C:\开发\ \ vert.x-1.3.0工具。最终的>vertx运行app.py无法找到verticle vertx.web server-v1.0。
i already installed the module in $VERTX_HOME\mods and javascript version of the sample is works well,
我已经安装了$VERTX_HOME\mods和javascript版本的模块,效果很好,
load('vertx.js');
var webServerConf = {
port: 8080,
host: 'localhost'
};
// Start the web server, with the config we defined above
vertx.deployModule('vertx.web-server-v1.0', webServerConf);
Could u please kindly mentoring me?
你能指导我吗?
1 个解决方案
#1
0
I used 1.3 I upgraded to 2.1M3.
我使用1.3升级到2.1M3。
In internet, there are so many examples which based on old version of vertx and modules. So it is better to start official page. (vertx.io) It can reduce confusion.
在internet上,有很多基于vertx和模块的旧版本的例子。所以最好是开始正式的页面。(vertx.io)可以减少混淆。
FYI..
仅供参考. .
In addition thanx @tim_yates
除了谢谢@tim_yates
#1
0
I used 1.3 I upgraded to 2.1M3.
我使用1.3升级到2.1M3。
In internet, there are so many examples which based on old version of vertx and modules. So it is better to start official page. (vertx.io) It can reduce confusion.
在internet上,有很多基于vertx和模块的旧版本的例子。所以最好是开始正式的页面。(vertx.io)可以减少混淆。
FYI..
仅供参考. .
In addition thanx @tim_yates
除了谢谢@tim_yates