You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
hole-thu cc32c318a7 fix migdb.py 3 years ago
migrations fix: use timestamptz 3 years ago
src embed migrations 3 years ago
tools fix migdb.py 3 years ago
.gitignore feat: basic api & model for post 3 years ago
Cargo.toml embed migrations 3 years ago
LICENSE Initial commit 3 years ago
README.md embed migrations 3 years ago
diesel.toml feat: basic api & model for post 3 years ago

README.md

hole-backend-rust

部署

prepare database

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