From 5191f5e77c82950350a8dd2deb070bc833b7de10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BD=E7=91=A0=E7=92=83=28soruly=29?= Date: Tue, 5 Mar 2024 23:26:07 +0800 Subject: [PATCH] Update README.md --- README.md | 48 +----------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/README.md b/README.md index 23f5d70..27da564 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,8 @@ # trace.moe-worker [![License](https://img.shields.io/github/license/soruly/trace.moe-worker.svg?style=flat-square)](https://github.com/soruly/trace.moe-worker/blob/master/LICENSE) -[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/soruly/trace.moe-worker/docker-image.yml?style=flat-square)](https://github.com/soruly/trace.moe-worker/actions) -[![Docker](https://img.shields.io/docker/pulls/soruly/trace.moe-worker-hasher?style=flat-square)](https://hub.docker.com/r/soruly/trace.moe-worker-hasher) -[![Docker Image Size](https://img.shields.io/docker/image-size/soruly/trace.moe-worker-hasher/latest?style=flat-square)](https://hub.docker.com/r/soruly/trace.moe-worker-hasher) [![Discord](https://img.shields.io/discord/437578425767559188.svg?style=flat-square)](https://discord.gg/K9jn6Kj) Backend workers for [trace.moe](https://github.com/soruly/trace.moe) -### Features - -- 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 - -### Prerequisites - -- Node.js 14.x -- ffmpeg 4.x -- java (openjdk 1.8.0) -- git -- [pm2](https://pm2.keymetrics.io/) - -### Install - -Install Prerequisites first, then: - -``` -git clone https://github.com/soruly/trace.moe-worker.git -cd trace.moe-worker -npm install -``` - -### Configuration - -- Copy `.env.example` to `.env` -- Edit `.env` as appropriate for your setup - -### Start workers - -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 +Worker process are now spawn directly from [trace.moe-api](https://github.com/soruly/trace.moe-api). This is no longer needed for hashing and loading hashes.