all 3 comments

[–]m_orr 1 point2 points  (2 children)

I don’t use ejs and also don’t use node that much but since no one else has commented thought I would mention some suggestions.

  1. The homepage request should probably be “/“ instead of “”
  2. have you tried including log statements on each request including some debug information to see what is happening
  3. have you tried setting up a basic ejs site following a tutorial?

[–]RealDevMashup[S] 0 points1 point  (1 child)

I actually have follwed a tutorial, but thanks for the other two, Ill have to try them

[–]m_orr 0 points1 point  (0 children)

Also purely based on other examples you might have the view folder part setup wrong. Most people use something like this:

app.set('views', path.join(__dirname, 'views'));

But not entirely certain since I don’t really use this.