ms-sitemap

This microservice listens to the kiosk-api rabbitmq and send new URLs to Google

Usage no npm install needed!

<script type="module">
  import msSitemap from 'https://cdn.skypack.dev/ms-sitemap';
</script>

README

ms-sitemap

Listens to the KIOSK-API RabbitMQ queue and generates sitemaps on request

Installing ms-sitemap

npm install

Starting ms-sitemap

npm start

Deploy ms-sitemap

NANNA has to be installed on the server & your local machine

npm install -g git+ssh://git@gitlab.telegraaf.net:telegraaf-web/nanna.git

NANNA params:
  --host the server host name (keltek.telegraaf.net is our acc ms env)

HELP command:
nanna --host keltek.telegraaf.net --port 3000 --help

INSTALL MS:
nanna --host keltek.telegraaf.net --port 3000 install ms-sitemap [artifact link, see below]

START MS:
nanna --host keltek.telegraaf.net --port 3000 start ms-sitemap

Acceptance artifact: (https://gitlab.telegraaf.net/telegraaf-web/ms-sitemap/-/jobs/artifacts/master/download?job=Acceptance+Build)


Production artifact: (https://gitlab.telegraaf.net/telegraaf-web/ms-sitemap/-/jobs/artifacts/master/download?job=Production+Build)

Submitting Sitemap

curl "https://www.google.nl/ping?sitemap=https%3A%2F%2Fwww.telegraaf.nl%2Fsitemap.xml" -v

Syncing live DB

scp jorisr@keltek:/var/www/mservices/services/.ms-sitemap/sitemap.sqlite  jj.sqlite
DEBUG=* node import.js sync --db jj.sqlite