Fix compilation errors after PostgreSQL removal
Changes: - Remove pg_conn field from SshServerConfig struct - Remove pg_conn parameter from run_ssh_server function - Remove pg_conn CLI argument from ssh-start command - Remove non-existent user management API routes - Add missing dependencies: sysinfo, dirs - Fix CLI web.rs to pass home directory to server::run - Fix SSH server stream type (tokio -> std TcpStream) All compilation errors resolved.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use clap::Subcommand;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Subcommand)]
|
||||
pub enum WebCommand {
|
||||
@@ -14,7 +15,9 @@ pub enum WebCommand {
|
||||
pub async fn handle_web_command(cmd: WebCommand) -> anyhow::Result<()> {
|
||||
match cmd {
|
||||
WebCommand::Start { port, file } => {
|
||||
crate::server::run(port, file).await?;
|
||||
let home = dirs::home_dir()
|
||||
.ok_or_else(|| anyhow::anyhow!("Cannot determine home directory"))?;
|
||||
crate::server::run(port, file, home).await?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user