+3
-4
@@ -1,5 +1,5 @@
|
||||
use actix_cors::Cors;
|
||||
use actix_web::{web, App, HttpServer};
|
||||
use actix_web::{App, HttpServer, web};
|
||||
use clap::Parser;
|
||||
use tracing_actix_web::TracingLogger;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
@@ -79,9 +79,8 @@ async fn main() -> anyhow::Result<()> {
|
||||
static_dir
|
||||
} else {
|
||||
// Check next to shanty-web crate root (for development)
|
||||
let dev_path = std::path::PathBuf::from(
|
||||
concat!(env!("CARGO_MANIFEST_DIR"), "/shanty-web/static"),
|
||||
);
|
||||
let dev_path =
|
||||
std::path::PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/shanty-web/static"));
|
||||
if dev_path.is_dir() {
|
||||
dev_path
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user