about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVika Shleina <vika@fireburn.ru>2021-07-15 04:32:29 +0300
committerVika <vika@fireburn.ru>2021-07-19 04:57:11 +0300
commitd399fd0bd00c9ea073e5b057de70c9ffdd9356f8 (patch)
treea9dafbeb62fb2aeb56e2d190565c70cd7f4b9d7a /src/main.rs
parent93b56879298810d60d121203403e2416f35e4765 (diff)
downloadkittybox-d399fd0bd00c9ea073e5b057de70c9ffdd9356f8.tar.zst
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
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,