vCloudLabs是WMWare提供的云计算服务器,类似Heroku,可以将自己做的应用上传到服其上.详细介绍可以看如下帖子
http://www.iteye.com/topic/1112440
开发库支持: Grails, Rails3.1(with ruby1.9.2), node.js
数据库: MySql, MongoDB, Redis
1. 申请vmc帐号
2. 安装vmc gems
3. 登录vmc
1. 安装node.js
2. 安装npm(类似ruby中的 gems)
3. 安装Express
npm install -g express
#注意, 这里需要添加 -g 参数, 将Express安装成全局module.
$ express vmcapp
create : vmcapp create : vmcapp/package.json create : vmcapp/app.js create : vmcapp/public/javascripts create : vmcapp/public/images create : vmcapp/public/stylesheets create : vmcapp/public/stylesheets/style.css create : vmcapp/views create : vmcapp/views/layout.jade create : vmcapp/views/index.jade
$ cd vmcapp
$ npm install
[email protected] ./node_modules/jade ├── [email protected] └── [email protected] [email protected] ./node_modules/express ├── [email protected] ├── [email protected] └── [email protected]
$ tree -L 2
$ node app.js
{ "name": "vmcapp" , "version": "0.0.1" , "private": true , "dependencies": { "express": "2.4.6" , "jade": ">= 0.0.1" } }
require.paths.unshift('./mode_modules');
app.listen(process.env.VMC_APP_PORT || 3000);
require.paths.unshift('./node_modules') var app = require('express').createServer(); app.get('/', function(req, res){ res.send('hello world test using express and npm'); }); app.listen(process.env.VMC_APP_PORT || 3000);
$ vmc push
# 根据向导一步一步进行即可
$ vmc update vmcapp --path .