Skip to content

Commit

Permalink
更新 README 文案
Browse files Browse the repository at this point in the history
  • Loading branch information
jysperm committed May 6, 2016
1 parent ee8d0e4 commit d56f3bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# node-js-getting-started
# Node.js Getting started

一个简单的使用 Express 4 的 Node.js 应用。
可以运行在 LeanEngine Node.js 运行时环境。
Expand All @@ -21,30 +21,29 @@ npm install
关联应用:

```
avoscloud add <origin> <appId>
lean app add origin <appId>
```

这里的 appId 填上你在 LeanCloud 上创建的某一应用的 appId 即可。origin 则有点像 Git 里的 remote 名称。

启动项目:

```
avoscloud
lean up
```

应用即可启动运行:[localhost:3000](http://localhost:3000)

## 部署到 LeanEngine


部署到测试环境:
部署到预备环境(若无预备环境则直接部署到生产环境):
```
avoscloud deploy
lean deploy
```

部署到生产环境
将预备环境的代码发布到生产环境
```
avoscloud publish
lean publish
```

## 相关文档
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var AV = require('leanengine');

var app = express();

// 设置 view 引擎
// 设置模板引擎
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.use(express.static('public'));
Expand Down

0 comments on commit d56f3bc

Please sign in to comment.