2022-03-27 22:26:37 +08:00
2022-03-22 03:59:33 +08:00
2022-03-27 21:45:15 +08:00
2022-03-24 21:39:40 +08:00
2022-03-15 12:36:40 +08:00
2022-03-27 21:45:15 +08:00
2022-03-15 12:36:40 +08:00
2022-03-15 12:12:50 +08:00
2022-03-27 22:26:37 +08:00

hole-backend-rust

部署

以下内容假设你使用 Ubuntu 20.04

目前只支持postgresql对支持sqlite的追踪见 issue #1

安装postgresql (略)

安装redis-server (略)

准备数据库

进入:

sudo -u postgres psql

执行:

postgres=# CREATE USER hole WITH PASSWORD 'hole_pass';
CREATE ROLE
postgres=# CREATE DATABASE hole_v2 OWNER hole;
CREATE DATABASE
postgres=# \c hole_v2
You are now connected to database "hole_v2" as user "postgres".
hole_v2=# CREATE EXTENSION pg_trgm;
CREATE EXTENSION
hole_v2=# \q

运行

基于二进制文件

./hole-thu --init-database
./hole-thu

基于源码

安装rust与cargo环境 (略)

clone 代码 (略)

cargo run --release -- --init-database
cargo run --release

或安装diesel_cli

diesel migration run
cargo run --release
Description
No description provided
Readme WTFPL 848 KiB
v1.4 Latest
2022-08-21 17:25:44 +08:00
Languages
Rust 94.3%
Python 2.8%
PLpgSQL 1.2%
RenderScript 1.1%
Dockerfile 0.5%
Other 0.1%