Добавлен скрипт запуска сервера на mac

This commit is contained in:
Alexander Yuzhin
2016-03-24 17:17:06 +03:00
parent 1b4e20c65c
commit 180d938dd2
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{
"log": {
"appenders": [
{
"type": "console"
}
],
"replaceConsole": "true",
"levels": {
"nodeJS": "Debug"
}
},
"server": {
"port": 3000,
"siteUrl": "http://127.0.0.1:8080/",
"commandUrl": "coauthoring/CommandService.ashx",
"storageUrl": "FileUploader.ashx",
"converterUrl": "ConvertService.ashx",
"tempStorageUrl": "ResourceService.ashx",
"apiUrl": "office/apps/api/documents/api.js",
"preloaderUrl": "office/apps/api/documents/cache-scripts.html",
"viewedDocs": [".ppt", ".pps", ".odp", ".pdf", ".djvu", ".epub", ".xps"],
"editedDocs": [".docx", ".doc", ".odt", ".xlsx", ".xls", ".ods", ".csv", ".pptx", ".ppsx", ".rtf", ".txt", ".mht", ".html", ".htm"],
"convertedDocs": [".doc", ".odt", ".xls", ".ods", ".ppt", ".pps", ".odp", ".rtf", ".mht", ".html", ".htm", ".epub"],
"storageFolder": "",
"haveExternalIp": false,
"maxFileSize": 5242880
}
}

View File

@ -0,0 +1,16 @@
#!/bin/bash
BASEDIR=$(pwd)
echo "----------------------------------------"
echo "Install nodejs modules "
echo "----------------------------------------"
npm install
echo "----------------------------------------"
echo "Run server "
echo "----------------------------------------"
export NODE_CONFIG_DIR=$BASEDIR/config && export NODE_ENV=development-mac && node bin/www