Skip to content

部署 | Deploy

Heran Yang edited this page May 12, 2021 · 5 revisions

项目中 deploy/ 文件夹中内容为部署相关代码。
The folder deploy/ contains codes related to deployment.

项目使用 PostgreSQL 数据库与 Redis 缓存。请在部署之前安装(Docker 版本也可)。
The service uses PostgreSQL and Redis. Please install them before deploying (It's okay for docker version).

deploy/sql/init.sql 为初始化数据库语句,deploy/install.sh 为部署脚本。 deploy/sql/init.sql is the statement for initializing database,deploy/install.sh is the script for deployment.

部署成功后,会获得一个管理员账号的密码和 token。这个 token 是用于前端加密密码用的。采用 HMAC-SHA256 加密方式,需要在前端配置相同 token 以加密密码。
If deployed successfully, you will get the password of administrator and a token. The token is used for encrypting the password at the frontend. Frontend should use HMAC-SHA256 to encrypt password by this token and pass to the backend.

Clone this wiki locally