depository-deploy

中文文档
1.18.9发布于 2026/11/03UNLICENSEDES Module

Depository document management system – deployment wizard and installers

原始使用文档
文档目录14 节
  1. Most sites never install this by hand
  2. A new installation
  3. 1. Prerequisites
  4. 2. Run the wizard
  5. 3. Run the installer
  6. 4. Open the web interface
  7. Installing only part of the product
  8. Upgrading a server whose settings have been changed
  9. Upgrading a Windows server without removing its services
  10. Platform packages
  11. What is in this package
  12. Air-gapped sites
  13. Keep depository.conf safe
  14. Support and licensing

Depository — deployment wizard and installers

Depository is a document archiving and retrieval system for enterprises: a REST API, an authentication service, a background ingestion worker, a document gatherer, a digestor, the Customer Intelligence miner and a web interface, running against SQL Server or Oracle.

This package is how Depository is installed and upgraded. It contains the setup wizard, the installers for Windows and Linux, and the configuration template. The service binaries themselves come from a platform package that npm selects for you — see Platform packages below.

This is a commercial product. The package is public on npm so that installed sites can update themselves without a credentialled registry, but running Depository requires a licence.


Most sites never install this by hand

An installed Depository server updates itself. Its update script runs

npm install -g depository-deploy@<version> --include=optional

and then applies what it downloaded. If you are upgrading an existing server, use that server's update script rather than installing this package yourself — it stops the services in the right order, keeps your configuration, and restarts them.

--include=optional matters. Without it npm skips the platform package and you get the installers with no binaries behind them.


A new installation

1. Prerequisites

DatabaseSQL Server 2019+ or Oracle 19c+ — may be on another machine
Runtime.NET 9 ASP.NET Core Runtime (x64) on the Depository server
Node18 or newer, to run this package
Web servernginx, or IIS on Windows — optional, for serving the UI on port 80

2. Run the wizard

npx depository-wizard

It serves a setup page on http://localhost:7474. Answer the questions and it writes a depository.conf for you.

Prefer to edit the file directly? depository.conf ships with every value commented. The full step-by-step guide is README.txt in this package — prerequisites, what each setting means, how to serve the UI under IIS, daily start/stop commands, and troubleshooting.

3. Run the installer

Windows — PowerShell, as Administrator:

cd install
.\install-windows.ps1

Linux:

cd install
sudo bash install-unix.sh

The installer creates the directories, copies the services, generates each service's configuration from depository.conf, registers and starts the services, configures nginx or Windows Services, opens the firewall ports and prints a status summary.

4. Open the web interface

Browse to the SITE_URL you configured. The first administrator account is created from the web UI, or comes from Active Directory if you enabled Windows authentication.


Installing only part of the product

A server can be given one job — most often a machine placed next to the scanners or hot folders it reads, running ingestion only:

COMPONENTS=worker,gatherer

Valid names are api, auth, worker, gatherer, digestor, intelligence, ui. Leave COMPONENTS blank to install everything, which is what a single server wants.

intelligence is the Customer Intelligence miner: installed with everything, inert until Customer Intelligence is switched on in Admin > Intelligence. An update refreshes it only where it is already installed; an existing server gets it by running the installer again.

Only a server with api creates or migrates the database, only one with auth touches the user directory, and only one with ui is given a web site. Installing one part never stops or replaces another part already on that machine.

Do not write an ingest server's configuration by hand. Generate it from the main server — the setup wizard's Export ingest package button, or the DEPOSITORY.TOOLS.SETUP tool in that server's setup/ folder. The generated file contains database passwords: move it over a trusted channel and delete it once the ingest server is running.


Upgrading a server whose settings have been changed

Every installer run rewrites each service's configuration from depository.conf. That is right for a first install, and wrong for a server whose settings have since been changed in the Administrator screens — those changes live on the server, and a plain upgrade puts them back.

KEEP_SETTINGS=true

A configuration file that is already there is then left alone; one that is missing is still written, so nothing ends up unconfigured.

Upgrading a Windows server without removing its services

Every installer run removes each Depository Windows service and registers it again. That throws away the service's Log On account, its password and its recovery settings — and where granting "Log on as a service" again needs a change request, every upgrade needs one.

UPDATE_IN_PLACE=true

A registered service is then stopped, its files replaced and started again, as the automatic update does. No database connection is made, so the database password is not needed; the API brings the database up to date when it starts. Service configuration and the IIS site, app pool and bindings are left as they are. A service that is new in this release is created as before, running as LocalSystem — the installer says so, and you set its Log On account by hand. Not for a first install, and refused together with CLEAN_DB=true. The setup wizard shows this as Update in place when it finds an installation on the server.

Your database and your stored documents are never touched by the installer.


Platform packages

The service binaries are not in this package. They are in three optional dependencies, each restricted to its own operating system so npm installs exactly one:

PackageFor
depository-deploy-linuxLinux x64
depository-deploy-windowsWindows x64
depository-deploy-macosmacOS

They are published together with this package at the same version and are not meant to be installed directly.

Configuration files inside them are sanitised at publish time: every connection string, password and token is replaced with a placeholder, any file the installer writes at run time is removed, and the publish is refused outright if a real credential survives. What reaches npm configures nothing on its own — the installer generates the real configuration from your depository.conf.


What is in this package

wizard.html, wizard-server.mjsthe setup wizard (npx depository-wizard)
install/installers, uninstallers, update and restart scripts, nginx and service templates
depository.confthe configuration template, fully commented
README.txtthe complete installation and operations guide
RELEASE_NOTES.htmlwhat changed in each release, and what an upgrade does

Read RELEASE_NOTES.html before upgrading. It states, per release, whether a database migration runs, what an upgrade changes for a site that changes nothing, and what is deliberately not in the release yet.


Air-gapped sites

Sites with no route to npm install from an offline bundle instead — the same contents as a zip, delivered through your usual channel. Ask your supplier for the bundle for the version you want; everything above applies unchanged once it is unpacked.


Keep depository.conf safe

It holds your database passwords and your JWT signing secret. Keep it readable only by the account that runs the installer, and delete any copy you moved between machines once that machine is running.


Support and licensing

Licensed commercially; this package does not grant a licence to run the product. Please raise problems through the support channel on your existing agreement, and include the version you are on from RELEASE_NOTES.html.

On Windows, diagnose-windows.bat collects the service state, ports and recent log entries into one output worth attaching. There is no Linux equivalent yet; on Linux send systemctl status 'depository-*' and journalctl -u depository-api -n 100.

版本与发布记录

depository-deploy 共发布 120 个版本,首次发布于 2026/03/11;过去 12 个月发布了 120 个版本。

版本发布日期距今
1.18.9latest2026/11/03今天
1.18.72026/10/268 天前
1.18.62026/10/2311 天前
1.18.52026/10/2311 天前
1.18.42026/10/1618 天前
1.18.32026/10/1618 天前

关于 depository-deploy 的常见问题

depository-deploy 是什么?

存储文档管理系统。部署向导和安装程序

如何安装 depository-deploy?

在项目目录运行 npm install depository-deploy,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 depository-wizard,可以用 npx depository-wizard 直接运行。

depository-deploy 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/depository-deploy 是否存在。

depository-deploy 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

depository-deploy 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

depository-deploy 可以商用吗?

depository-deploy 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

depository-deploy 还在维护吗?

最新版本 1.18.9 发布于 2026/11/03(今天);至今共发布 120 个版本,其中过去 12 个月发布了 120 个;首次发布于 2026/03/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。