On Sun, 21 Oct 2012 21:32:22 -0500, jmac jmcclean@gmail.com wrote:
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.
It listens on ipv6 as well as ipv4, and ipv6 fails in your case. It also
fails in mine, but I have no need for it.
If you check 127.0.0.1:8080 I'm sure you'll discover it working.
The Error message could probably be improved, but whatever.
Using Opera's revolutionary email client: http://www.opera.com/mail/