https://github.com/redturtle/rendertron-volto
Simple repo fo configuring Rendertron
https://github.com/redturtle/rendertron-volto
Last synced: 10 months ago
JSON representation
Simple repo fo configuring Rendertron
- Host: GitHub
- URL: https://github.com/redturtle/rendertron-volto
- Owner: RedTurtle
- Created: 2021-02-22T10:56:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T09:06:32.000Z (over 5 years ago)
- Last Synced: 2025-04-04T01:41:23.203Z (about 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rendertron-volto
Per una installazione di `rendertron` da utilizzare per il rendering di un sito
Volto (es: io-Comune) con `chrome headless` da dare in pasto ai bot (es: googlebot).
È già presente il suo `ecosystem.config.js` per poterlo usare con pm2.
**NB:**: Per abilitare il `config.json` in caso di modifiche, usare lo script
`enable_config_json` e poi riavviare `rendertron-volto`.
---
Generato con:
```
npm init
npm install rendertron
```
Aggiunto `"start": "node_modules/rendertron/bin/rendertron",` alla sezione
`scripts` del `package.json`.
Aggiunto il file `config.json` per le impostazioni di base.
---
#### aggiungerlo a pm2
```
pm2 start ecosystem.config.js
pm2 save
```
---
## Librerie di sistema necessarie
Sulla nostra prima macchina di prova, abbiamo dovuto installare i seguenti pacchetti di sistema:
```
libappindicator3-1
libasound2
libatk-bridge2.0-0
libdrm-dev
libgbm1
libgtk-3-0
libx11-xcb1
libxkbcommon-dev
libxrandr2
```
---
## Installazione
Effettuare il clone:
```bash
npm install
# edit config
bash enable_config_json
pm2 start ecosystem.config.js
pm2 save
```