From d399fd0bd00c9ea073e5b057de70c9ffdd9356f8 Mon Sep 17 00:00:00 2001 From: Vika Shleina Date: Thu, 15 Jul 2021 04:32:29 +0300 Subject: Renamed main executable to kittybox, added tools The new tools are: - kittybox-bulk-import, a bare-bones Micropub client that reads a JSON list of posts and then sends them one by one to the Micropub endpoint - pyindieblog-export, my personal tool which directly connects to Pyindieblog's redis instance and extracts data from it in JSON format suitable for use with kittybox-bulk-import. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1b333a2..23b5ddb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use kittybox_micropub as micropub; +use kittybox; use log::{debug, error, info}; use std::env; use surf::Url; @@ -9,7 +9,7 @@ async fn main() -> Result<(), std::io::Error> { let logger_env = env_logger::Env::new().filter_or("RUST_LOG", "info"); env_logger::init_from_env(logger_env); - info!("Starting the Micropub server..."); + info!("Starting the kittybox server..."); let redis_uri: String; match env::var("REDIS_URI") { @@ -62,7 +62,7 @@ async fn main() -> Result<(), std::io::Error> { let host = env::var("SERVE_AT") .ok() .unwrap_or_else(|| "0.0.0.0:8080".to_string()); - let app = micropub::get_app_with_redis( + let app = kittybox::get_app_with_redis( token_endpoint, authorization_endpoint, redis_uri, -- cgit 1.4.1