Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soruly authored Mar 5, 2024
1 parent 8835554 commit 5191f5e
Showing 1 changed file with 1 addition and 47 deletions.
48 changes: 1 addition & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 5191f5e

Please sign in to comment.