aboutsummaryrefslogtreecommitdiffstats
path: root/rust/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'rust/README.md')
-rw-r--r--rust/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/README.md b/rust/README.md
index f539e4fb..794afee7 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -9,6 +9,13 @@ Things!
diesel print-schema > src/database_schema.rs
+Regenerate API schemas:
+
+ cargo swagger fatcat-openapi2.yml fatcat-api --docker-tag=v2.3.1
+ sudo chown `whoami`:`whoami` -R fatcat-api
+ # edit fatcat-api/Cargo.toml, set name to "fatcat-api"
+ cargo fmt
+
Debugging SQL errors:
psql fatcat_rs < migrations/2018-05-12-001226_init/up.sql