Closed necarnot closed 6 months ago
You must first build it with npm run build
and then you will find index.js
in dist
directory. Feel free to send PR with updated documentation.
I tried to change /etc/systemd/system/freemap-mapnik.service updating the line ExecStart this way :
ExecStart=/usr/bin/node --max-old-space-size=4096 --unhandled-rejections=strict dist/index.js
and when starting the service and looking at the journalctl logs, it seems to be running well.
But, is it the intended way to do, or do we have to move the dist files out of here somehow?
After having copied ./etc/systemd/freemap-mapnik.service into /etc/systemd/system/ folder and adapted it (username, password, database, working dir), trying to start it is leading to the following error :
The content of the file is partialy this :
and indeed :
This folder has just been git pulled tonight.
Trying to run it manually (from the correct folder/user and with the same options) are obviously failing the same way.