moved ip and port to config.json

This commit is contained in:
coderaiser 2012-07-23 06:16:15 -04:00
parent 8edcd499c4
commit c6ed3cf774
3 changed files with 16 additions and 16 deletions

View file

@ -2,10 +2,12 @@
"cache" : {"allowed" : false},
"minification" : {
"js" : false,
"css" : true,
"css" : false,
"html" : true,
"img" : true
"img" : false
},
"server" : true,
"logs" : false
"port" : 31337,
"ip" : "127.0.0.1"
}

2
node_modules/minify generated vendored

@ -1 +1 @@
Subproject commit c17f61c01c8d777e4625a5bee753ca7ea2e6078d
Subproject commit bbce2184385d714003cec338be512ef4ed2d0def

View file

@ -16,28 +16,29 @@ var CloudServer = {
"html" : true,
"img" : false
},
"server" : true
"server" : true,
"logs" : false,
"port" : 31337,
"ip" : '127.0.0.1'
},
/* функция, которая генерирует заголовки
* файлов, отправляемые сервером клиенту
*/
generateHeaders : function () {},
/* функция высылает
* данные клиенту
*/
sendResponse : function () {},
/* Структура содержащая функции,
* и переменные, в которых
* говориться о поддерживаемых
* браузером технологиях
*/
BrowserSuport : {},
/* Обьект для работы с кэшем */
Cashe : {},
/* Обьект через который
* выполняеться сжатие
* скриптов и стилей
*/
Minify : {},
/* Асоциативный масив обьектов для
* работы с ответами сервера
@ -56,10 +57,7 @@ var CloudServer = {
/* КОНСТАНТЫ */
INDEX : 'index.html',
LIBDIR : './lib',
LIBDIRSERVER : './lib/server',
Port : 31337, /* server port */
IP : '127.0.0.1'
LIBDIRSERVER : './lib/server'
};
@ -153,10 +151,10 @@ CloudServer.start = function () {
this.Port = process.env.PORT || /* c9 */
process.env.app_port || /* nodester */
process.env.VCAP_APP_PORT || /* cloudfoundry */
CloudServer.Port;
CloudServer.Config.port;
this.IP = process.env.IP || /* c9 */
CloudServer.IP;
CloudServer.Config.ip;
/* if Cloud Server started on jitsu */
if(process.env.HOME &&