add: dockerfile and deploy command

This commit is contained in:
2025-10-15 21:23:22 -07:00
committed by charles
parent 92c8e56f24
commit 1dfdff35c3
5 changed files with 111 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ use std::time::Duration;
use clap::Parser;
use log::error;
use log::{error, info};
use anyhow::Result;
use env_logger::Env;
@@ -37,6 +37,7 @@ fn handle(remote: &str, listen: &str) -> Result<()> {
let url = format!("http://{}/register/{}", remote, listen);
loop {
sleep(Duration::from_secs(20));
info!("sending post to {}", url);
client.post(&url).send()?;
}
}