Código fuente wiki de Configuration de l'export nodejs
Última modificación por XWikiGuest el 2024/07/24 14:24
Ocultar los últimos autores
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{ddtoc/}} |
| 2 | |||
| 3 | ---- | ||
| 4 | |||
| |
8.1 | 5 | (% class="wikigeneratedid" %) |
| |
10.1 | 6 | La exportación de determinados Flujos (gráficos), como D3, Gantt u Open Street Map, requiere el uso de nodejs. |
| |
8.1 | 7 | |
| 8 | (% class="wikigeneratedid" %) | ||
| |
10.1 | 9 | Para ejecutar nodejs, siga las instrucciones siguientes. |
| |
8.1 | 10 | |
| |
10.1 | 11 | = Instalar Chromium = |
| |
6.1 | 12 | |
| |
10.1 | 13 | La exportación de nodejs requiere tener instalado el navegador Chromium. |
| |
6.1 | 14 | |
| |
10.1 | 15 | Para la instalación en Ubuntu 22.04, utilice los siguientes comandos: |
| |
6.1 | 16 | |
| 17 | {{code}} | ||
| 18 | sudo wget "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x869689FE09306074" -O /etc/apt/trusted.gpg.d/phd-chromium.asc | ||
| 19 | echo "deb [signed-by=/etc/apt/trusted.gpg.d/phd-chromium.asc] https://freeshell.de/phd/chromium/$(lsb_release -sc) /" | sudo tee /etc/apt/sources.list.d/phd-chromium.list | ||
| 20 | sudo apt-get update | ||
| 21 | sudo snap remove chromium | ||
| 22 | sudo apt-get -y purge chromium-browser | ||
| 23 | sudo apt-get -y autoremove | ||
| 24 | sudo apt-get -y install chromium | ||
| 25 | {{/code}} | ||
| 26 | |||
| |
10.1 | 27 | = Activar el servidor nodejs export = |
| |
1.1 | 28 | |
| |
10.1 | 29 | 1. Edita el archivo **system.xml **en la carpeta **<digdash.appdata>/Enterprise Server/ddenterpriseapi/config**. |
| 30 | 1. Añade la línea: | ||
| |
1.1 | 31 | |
| |
4.1 | 32 | {{code language="batch" cssClass="notranslate"}} |
| |
2.1 | 33 | <Property key="NODEJS_EXPORT" value="true"></Property> |
| |
1.1 | 34 | {{/code}} |
| 35 | |||
| |
9.1 | 36 | (% start="3" %) |
| |
10.1 | 37 | 1. Reinicia el servidor tomcat. |
| |
1.1 | 38 | |
| |
10.1 | 39 | = Configurar el servidor nodejs = |
| |
1.1 | 40 | |
| 41 | |||
| |
10.1 | 42 | Si la dirección ip y el puerto tomcat son diferentes de los valores por defecto (localhost:8080), edita el archivo **digdash.properties.** Descomenta o añade la siguiente línea: |
| 43 | |||
| |
4.1 | 44 | {{code language="properties" cssClass="notranslate"}} |
| |
2.3 | 45 | ddenterpriseapi.SERVERURL=http://localhost:8080 |
| |
1.1 | 46 | {{/code}} |
| 47 | |||
| |
3.1 | 48 | (% class="box infomessage" %) |
| 49 | ((( | ||
| |
10.1 | 50 | 💡Para descomentar un parámetro en el archivo digdash.properties, elimine el carácter # al principio de la línea. |
| |
3.1 | 51 | ))) |