Switched dev server from https to microserver, for spa routing support

master
DavidOConnor 6 years ago
parent d2bf89db06
commit a0474f9a89

@ -1,6 +1,7 @@
[env] [env]
# all workspace members can use this Makefile # all workspace members can use this Makefile
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true" CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true"
PORT = "8000"
# ---- BUILD & CREATE WASMS ---- # ---- BUILD & CREATE WASMS ----
[tasks.build] [tasks.build]
@ -34,10 +35,10 @@ dependencies = ["build_release", "create_wasms"]
[tasks.serve] [tasks.serve]
description = "Start server" 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 workspace = false
command = "http" command = "microserver"
args = [] args = ["--port", "${PORT}"]
# ---- PRIVATE TASKS - run only inside another task ---- # ---- PRIVATE TASKS - run only inside another task ----
# private atribute is ignored (bug?) # private atribute is ignored (bug?)

Loading…
Cancel
Save