diff --git a/flake.nix b/flake.nix index baff0e3..5fb4229 100644 --- a/flake.nix +++ b/flake.nix @@ -66,7 +66,7 @@ hugo go nodejs - tailwindcss_4 + # tailwindcss_4 # sbcl' clippy rustc @@ -108,7 +108,7 @@ echo ''; buildPhase = '' - tailwindcss -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit && hugo --gc --minify + NODE_ENV=production ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit && hugo --gc --minify ${pkgs.hugo}/bin/hugo --minify ''; installPhase = '' diff --git a/src/main.rs b/src/main.rs index 498374b..534c887 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,7 +75,7 @@ async fn main() -> std::io::Result<()> { .with(logfile_layer.with_filter(filter).and_then(stdout_layer)); let _ = tracing::subscriber::set_global_default(subscriber).wrap_err("Tracing broked"); - std::fs::create_dir_all("/storage/logs/tfcsite")?; + std::fs::create_dir_all("/tmp/tfcsite")?; info!("starting HTTP server at http://localhost:4242"); @@ -88,7 +88,7 @@ async fn main() -> std::io::Result<()> { App::new() .app_data(data.clone()) .wrap(TracingLogger::::new()) - .app_data(TempFileConfig::default().directory("/storage/logs/tfcsite")) + .app_data(TempFileConfig::default().directory("/tmp/tfcsite")) .service(mt_form) .service(health_form) .service(mt_parent_form)