feature(cloudcmd) rm appCache

This commit is contained in:
coderaiser 2014-08-26 10:41:49 -04:00
parent 8445d32283
commit b8a1176c26
7 changed files with 2 additions and 210 deletions

View file

@ -26,12 +26,9 @@
CloudFunc = require(DIR_LIB + 'cloudfunc'),
minify = require(DIR_SERVER + 'minify'),
AppCache = require(DIR_SERVER + 'appcache'),
Socket = require(DIR_SERVER + 'socket'),
Console = require(DIR_SERVER + 'console'),
Terminal = !WIN ? require(DIR_SERVER + 'terminal') : {
init: function() {}
},
Terminal = !WIN ? require(DIR_SERVER + 'terminal') : function() {},
join = require(DIR_SERVER + 'join'),
ponse = require(DIR_SERVER + 'ponse'),
express = require(DIR_SERVER + 'express'),
@ -40,16 +37,6 @@
Rest, Route;
/* базовая инициализация */
function init(appCacheCallback) {
var config = main.config;
/* создаём файл app cache */
if (config.appcache && AppCache && config.server)
Util.exec(appCacheCallback);
}
/**
* start server function
*
@ -67,8 +54,6 @@
Rest = options.rest;
Route = options.route;
init(options.appcache);
port = process.env.PORT || /* c9 */
process.env.app_port || /* nodester */
process.env.VCAP_APP_PORT || /* cloudfoundry */
@ -220,10 +205,6 @@
name = path.join(dir, name);
/* watching is file changed */
if (config.appcache)
AppCache.watch(name);
ponse.sendFile({
name : name,
cache : config.cache,