File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ node_modules/
6
6
public /
7
7
.deploy * /
8
8
src /_drafts
9
+ .avoscloud /
Original file line number Diff line number Diff line change
1
+ var express = require ( 'express' ) ;
2
+ var AV = require ( 'leanengine' ) ;
3
+ var path = require ( 'path' ) ;
4
+ var app = express ( ) ;
5
+
6
+ var port = process . env . LEANCLOUD_APP_PORT || 3000 ;
7
+
8
+ AV . init ( {
9
+ appId : process . env . LEANCLOUD_APP_ID ,
10
+ appKey : process . env . LEANCLOUD_APP_KEY ,
11
+ masterKey : process . env . LEANCLOUD_APP_MASTER_KEY
12
+ } ) ;
13
+ app . enable ( 'trust proxy' ) ;
14
+ app . use ( AV . express ( ) ) ;
15
+ app . use ( AV . Cloud . HttpsRedirect ( ) ) ;
16
+ app . use ( express . static ( __dirname + '/public' ) ) ;
17
+ app . get ( '/' , function ( req , res ) {
18
+ res . sendFile ( path . resolve ( './public/index.html' ) )
19
+ } ) ;
20
+
21
+ app . listen ( port ) ;
Original file line number Diff line number Diff line change 11
11
</div ><div class =" right" >
12
12
<h2 class =" vue" >Vue.js 2.0 中文</h2 >
13
13
<h1 >
14
- 先进的 <br >JavaScript 框架
14
+ 渐进式 <br >JavaScript 框架
15
15
</h1 >
16
16
<p >
17
17
<a class =" button" href =" /guide/" >起步</a >
18
18
<a class =" button white" href =" https://github.com/vuejs/vue" target =" _blank" >GITHUB</a >
19
- <a class =" button white" href =" https://vuefe.leanapp.cn" target =" _blank" >HTTPS站点</a >
20
19
</p >
21
20
</div >
22
21
</div >
Original file line number Diff line number Diff line change 5
5
<li ><a href =" /vuex/" class =" nav-link<%- page.path.match(/vuex/) ? ' current' : '' %>" >vuex</a ></li >
6
6
<li ><a href =" /examples/" class =" nav-link<%- page.path.match(/examples/) ? ' current' : '' %>" >示例</a ></li >
7
7
<li ><a href =" https://webpack2.leanapp.cn" target =" _blank" >webpack</a ></li >
8
- <li ><a href =" https://vuefe.leanapp.cn" target =" _blank" >HTTPS站点</a ></li >
9
8
<li ><a href =" /more/" class =" nav-link<%- page.path.match(/more/) ? ' current' : '' %>" >更多</a ></li >
10
9
<% - partial (' partials/community_dropdown' ) %>
You can’t perform that action at this time.
0 commit comments