码迷,mamicode.com
首页 > 其他好文 > 详细

pomelo的使用

时间:2014-11-03 22:25:39      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   ar   os   使用   sp   div   

安装
npm install pomelo
创建项目
用pomelo的命令行工具可以快速创建一个项目,命令如下: $ pomelo init .
/HelloWorld 或者你也可以使用下面的三个命令: $ mkdir HelloWorld $ cd HelloWorld $ pomelo init

进入Helloworld
sh npm-install.sh
 

启动

启动game-server服务器:

$ cd game-server
$ pomelo start
启动web-server服务器:

$ cd web-server
$ node app 

查看运行成功状态
http://localhost:3001

关闭

$ cd game-server
$ pomelo stop

或者

$ cd game-server
$ pomelo kill

查看

pomelo list

 

 

pomelo的使用

标签:style   blog   http   color   ar   os   使用   sp   div   

原文地址:http://www.cnblogs.com/bornfish/p/4072235.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!