Backend workers for trace.moe
- watch file system changes and upload hash to trace.moe-media
- download video from trace.moe-media, hash, and upload to trace.moe-api
- download hash from trace.moe-api, deduplicate, and upload to solr
- Node.js 14.x
- ffmpeg 4.x
- java (openjdk 1.8.0)
- git
- pm2
Install Prerequisites first, then:
git clone https://github.com/soruly/trace.moe-worker.git
cd trace.moe-worker
npm install
- Copy
.env.example
to.env
- Edit
.env
as appropriate for your setup
You can use pm2 to run this in background in cluster mode.
Use below commands to start / restart / stop server.
npm run start
npm run stop
npm run reload
npm run restart
npm run delete
To change the number of nodejs instances, edit ecosystem.config.json