Build & Run (Local)
How to run VideoReview directly on a server, without Docker.
video-review-cli installs and runs the zip published with each release.
Note: the zip is built for Linux (x64) and Windows (x64).
1. Requirements
Section titled “1. Requirements”- Node v24
- PostgreSQL
- ffmpeg (used to convert videos; put the
ffmpegcommand on PATH)
2. Install
Section titled “2. Install”Create the install folder and work in it.
Download video-review-cli and .env
Section titled “Download video-review-cli and .env”# Linuxcurl -L -o video-review-cli https://github.com/arita-yuto/video-review/releases/latest/download/video-review-cli-linux-amd64chmod +x video-review-cli
# Windowscurl.exe -L -o video-review-cli.exe https://github.com/arita-yuto/video-review/releases/latest/download/video-review-cli-windows-amd64.exe
# Linux / Windowscurl -L -o .env https://raw.githubusercontent.com/arita-yuto/video-review/main/.example.envEdit .env
Section titled “Edit .env”Set DATABASE_URL to your PostgreSQL connection URL.
DATABASE_URL="postgresql://user:password@localhost:5432/videoreview"In production, set VIDEO_REVIEW_LOCAL_ROOTDIR to where videos are stored (create the folder first).
VIDEO_REVIEW_LOCAL_ROOTDIR="/path/.../..."When it is empty or the folder does not exist, videos go to uploads in the install folder.
Videos then pile up next to the app, which makes capacity hard to manage.
Install and start
Section titled “Install and start”./video-review-cli upgradeThis installs the latest release and starts the web and the worker.
It is done when … is running appears.
Open http://localhost:3489 and register the first administrator (Admin Screen Guide).
3. Start and stop
Section titled “3. Start and stop”./video-review-cli start./video-review-cli stopThe web and the worker run in the background, and their logs go to logs.
After the OS restarts, start them with start.
4. Update to a new release
Section titled “4. Update to a new release”./video-review-cli upgradeThis installs the latest release and replaces the web, the worker and video-review-cli.
If it does not start, the previous release runs again.
You can also update from the admin screen (General).
Note: after editing .env, run ./video-review-cli stop and then start to load it again.
Reference
Section titled “Reference”What the folder holds
Section titled “What the folder holds”| Name | Meaning |
|---|---|
video-review-cli |
The CLI of the latest release |
.env |
Settings |
secrets |
The encryption key (without it, saved tokens can no longer be read) |
uploads |
Uploaded files (when VIDEO_REVIEW_LOCAL_ROOTDIR is empty) |
releases |
Unpacked releases (the running one and the two newest are kept) |
current |
The running release |
run |
Process IDs of the running web and worker |
logs |
web.log, worker.log, upgrade.log |
Move VideoReview to another folder
Section titled “Move VideoReview to another folder”- Stop the current server.
- Download
video-review-cliinto the new folder (Download; skip.env). - Move
.env,secretsanduploadsfrom the current folder to the new one. - Run
./video-review-cli upgradein the new folder.
Note: uploads exists only if VIDEO_REVIEW_LOCAL_ROOTDIR was not set.
Build from source
Section titled “Build from source”cp .example.env .env # set DATABASE_URLnpm installnpm run prisma:deploynpm run buildnpm run start