diff --git a/flake.nix b/flake.nix index 3fde1fa..342f1bb 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,9 @@ cl_plus_ssl fiveam slite + clack + woo + ningle pkgs.openssl pkgs.openssl.out pkgs.openssl.dev @@ -68,7 +71,17 @@ in { - devShell = import ./shell.nix { inherit pkgs; }; + devShell = pkgs.mkShell { + name = "tfc-api"; + version = "0.0.1"; + src = src; + nativeBuildInputs = nbi; + buildInputs = bi; + nativeLibs = nativeLibs; + shellHook = '' + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath nativeLibs}" + ''; + }; packages.default = pkgs.rustPlatform.buildRustPackage { pname = "api"; version = "0.0.1"; diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index ce4fa23..ae4e8dc 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -78,7 +78,7 @@ // Can now start using this in production IF, // I get the server running on the server /* let base = "https://api.tfcconnection.org/health-form"; */ - let base = "http://localhost:4242/health-form"; + let base = "http://localhost:5000/health-form"; fetch(base, { method: "POST", body: data @@ -217,7 +217,7 @@