Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyiming committed Oct 24, 2016
1 parent cf881de commit f7dc048
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules/
public/
.deploy*/
src/_drafts
.avoscloud/
21 changes: 21 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var express = require('express');
var AV = require('leanengine');
var path = require('path');
var app = express();

var port = process.env.LEANCLOUD_APP_PORT || 3000;

AV.init({
appId: process.env.LEANCLOUD_APP_ID,
appKey: process.env.LEANCLOUD_APP_KEY,
masterKey: process.env.LEANCLOUD_APP_MASTER_KEY
});
app.enable('trust proxy');
app.use(AV.express());
app.use(AV.Cloud.HttpsRedirect());
app.use(express.static(__dirname + '/public'));
app.get('/', function(req, res) {
res.sendFile(path.resolve('./public/index.html'))
});

app.listen(port);
3 changes: 1 addition & 2 deletions themes/vue/layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
</div><div class="right">
<h2 class="vue">Vue.js 2.0 中文</h2>
<h1>
先进的<br>JavaScript 框架
渐进式<br>JavaScript 框架
</h1>
<p>
<a class="button" href="/guide/">起步</a>
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
<a class="button white" href="https://vuefe.leanapp.cn" target="_blank">HTTPS站点</a>
</p>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion themes/vue/layout/partials/main_menu.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
<li><a href="/vuex/" class="nav-link<%- page.path.match(/vuex/) ? ' current' : '' %>">vuex</a></li>
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">示例</a></li>
<li><a href="https://webpack2.leanapp.cn" target="_blank">webpack</a></li>
<li><a href="https://vuefe.leanapp.cn" target="_blank">HTTPS站点</a></li>
<li><a href="/more/" class="nav-link<%- page.path.match(/more/) ? ' current' : '' %>">更多</a></li>
<%- partial('partials/community_dropdown') %>

0 comments on commit f7dc048

Please sign in to comment.