From a0474f9a8932428e73be7fe8a259e0f5181c90d5 Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Mon, 22 Apr 2019 19:27:53 -0400 Subject: [PATCH] Switched dev server from https to microserver, for spa routing support --- Makefile.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index d8fcaec..4718478 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,6 +1,7 @@ [env] # all workspace members can use this Makefile CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true" +PORT = "8000" # ---- BUILD & CREATE WASMS ---- [tasks.build] @@ -34,10 +35,10 @@ dependencies = ["build_release", "create_wasms"] [tasks.serve] description = "Start server" -install_crate = { crate_name = "https", binary = "http", test_arg = "--help" } +install_crate = { crate_name = "microserver", binary = "microserver", test_arg = "-h" } workspace = false -command = "http" -args = [] +command = "microserver" +args = ["--port", "${PORT}"] # ---- PRIVATE TASKS - run only inside another task ---- # private atribute is ignored (bug?)