mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
Добавлен скрипт запуска сервера на mac
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
16
web/documentserver-example/nodejs/run-mac.sh
Executable file
16
web/documentserver-example/nodejs/run-mac.sh
Executable 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
|
||||
Reference in New Issue
Block a user