-
Notifications
You must be signed in to change notification settings - Fork 160
Changelog v27
victor felder edited this page Feb 24, 2018
·
11 revisions
Suivre les instructions pour installer le serveur zmarkdown : https://gist.github.com/vhf/161206d6fb1d158b09e366561cef02e3
- installez nodejs https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
- assurez-vous que la variable
$HOME
existe et possède une valeur cohérente npm install -g yarn pm2
- dans le repo :
cd zmd
yarn install
pm2 start
cd ..
./scripts/install_resources.sh
./scripts/install_fonts.sh
As user:
(src: http://pm2.keymetrics.io/docs/usage/startup/ )
# pm2 needs to be install globally, both for zmd server and for munin
npm install --global pm2
mkdir -p /opt/zmd
cd /opt/zmd
npm install zmarkdown@$ZMD_V
cd /opt/zmd/node_modules/zmarkdown && npm run server
cd /opt/zmd
pm2 startup --service-name -u zds --hp /opt/zmd
pm2 save
# Check if pm2-<USER> service has been added
systemctl list-units
As root:
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_avg_per_endpoint
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_avg_per_process
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_cpu
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_event_loop_lag
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_memory
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_req_per_endpoint
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_req_per_process
ln -s /opt/zmd/node_modules/zmarkdown/munin/plugin.js /etc/munin/plugins/zmd_status
chmod +x \
/opt/zmd/node_modules/zmarkdown/munin/plugin.js \
/etc/munin/plugins/zmd_avg_per_endpoint \
/etc/munin/plugins/zmd_avg_per_process \
/etc/munin/plugins/zmd_cpu \
/etc/munin/plugins/zmd_event_loop_lag \
/etc/munin/plugins/zmd_memory \
/etc/munin/plugins/zmd_req_per_endpoint \
/etc/munin/plugins/zmd_req_per_process \
/etc/munin/plugins/zmd_status
# check that plugin runs
sudo -H -u munin munin-run zmd_req_per_process config
sudo -H -u munin munin-run zmd_req_per_process
service munin-node restart
# make sure you get one `yes` per above link (8)
sudo -H -u munin munin-node-configure | grep '^zmd_'
- tout ce qui nécessite du markdown
- les forums (vérifier que ça fonctionne et que le design n'est pas cassé aussi bien avec des nouveaux messages qu'avec des anciens qu'on modifie)
- les contenus (idem)
- les PDF (nouveauté)
- les epubs (nouveauté)
- publication partielle (nouveauté)