Spaces:
Runtime error
Runtime error
using Genie | |
Genie.loadapp(pwd()) | |
include("packages.jl") | |
using PrecompileSignatures | |
for p in PACKAGES | |
"Precompiling signatures for $p" | |
Core.eval("import $p")) | , Meta.parse(|
Core.eval("@precompile_signatures($p)")) | , Meta.parse(|
end | |
import Genie.Requests.HTTP | |
"Hitting routes" | |
for r in Genie.Router.routes() | |
try | |
r.action() | |
catch | |
end | |
end | |
const PORT = 8000 | |
try | |
"Starting server" | |
up(PORT) | |
catch | |
end | |
rts = Genie.Router.routes() | |
try | |
for rt in rts | |
"GET", "http://localhost:$PORT" * rt.path) | HTTP.request(|
end | |
catch | |
end | |
try | |
"Stopping server" | |
Genie.Server.down!() | |
catch | |
end | |