debugparse
All checks were successful
deploy / deploy (push) Successful in 55s

This commit is contained in:
2024-10-23 16:21:18 +03:00
parent 322c50de57
commit 6206a68697
2 changed files with 5 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ mod thumbnail;
use actix_web::{middleware::Logger, web, App, HttpServer};
use app_state::AppState;
use handlers::{proxy_handler, upload_handler};
use log::info;
use log::warn;
use tokio::task::spawn_blocking;
use std::env;
use env_logger;
@@ -15,7 +15,7 @@ use env_logger;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
env_logger::init();
info!("Started");
warn!("Started");
let port = env::var("PORT").unwrap_or_else(|_| "8080".to_string());
let addr = format!("0.0.0.0:{}", port);