custom server

This commit is contained in:
life
2015-03-15 22:38:35 +08:00
parent aba15ad087
commit 238223d7b4
23 changed files with 219 additions and 56 deletions

19
node_modules/evt.js generated vendored
View File

@@ -16,12 +16,27 @@ if(!fs.existsSync(dataBasePath)) {
// dataBasePath = '';
var Evt = {
// leanoteUrl: 'http://leanote.com',
leanoteUrl: 'http://localhost:9000',
defaultUrl: 'http://leanote.com',
leanoteUrl: 'http://leanote.com',
// leanoteUrl: 'http://localhost:9000',
setHost: function(host) {
if(!host) {
this.leanoteUrl = this.defaultUrl;
} else {
this.leanoteUrl = host;
}
},
getHost: function() {
return this.leanoteUrl;
},
port: 8008,
localUrl: 'http://127.0.0.1:8008',
dataBasePath: '',
getImageLocalUrl: function(fileId) {
return this.localUrl + '/api/file/getImage?fileId=' + fileId;
},