I followed the instructions on the 'Documentation' page to try to get started. I installed using apt-get and all seemingly went well. I set up the .dt and .d files per the 'Documentation' page. I get the following output.
john@dell-ubuntu:~/workspace/vibe-test$ vibe
[B76D3F80:00000000 INF] Updating application in '/home/john/workspace/vibe-test'
[B76D3F80:00000000 INF] You are up to date
Compiling diet template 'index.dt'...
Compiling diet template 'index.dt'...
[B76C6F80:00000000 WRN] Failed to listen on :::8080
[B76C6F80:00000000 INF] Running event loop...
There's nothing running on 8080. (I can listen using nc / nothing in netstat.) I assume the problem has something to do with the ":::" before the 8080, but don't know where to go from here. My 'd' code is here, but it's a straight copy from the 'Documentation' page.
import vibe.d;
void index(HttpServerRequest req, HttpServerResponse res)
{
res.render!("index.dt");
}
static this()
{
auto router = new UrlRouter;
router.get("/", &index);
auto settings = new HttpServerSettings;
settings.port = 8080;
listenHttp(settings, router);
}
Any help would be appreciated. This looks like a really promising project.