poeticninja / hapi-ninja

Boilerplate Hapi server example. Node.js, Hapi, and Swig.
MIT License
378 stars 56 forks source link

exception #3

Closed iOSDevil closed 10 years ago

iOSDevil commented 10 years ago

Hi,

I've followed the installation on a Windows machine.

I'm getting the following..

C:\boliderplate>node server Server started at: http://0.0.0.0:3000 140407/093141.856, request, http://0.0.0.0:3000: get / {} 200 (31ms)

events.js:72 throw er; // Unhandled 'error' event ^ Error: EISDIR, write

iOSDevil commented 10 years ago

The same resulting folder structure results in a working server on a mac

poeticninja commented 10 years ago

I looked into this and it seems there is an issue with the Good plugin, Windows, and savings logs to a folder using the current settings.

Good is for logging and for some reason it does not like the line 8 in the /server/config/plugins.js tmp/logs/. If you remove line 8 then everything works fine.

If you are needing to write your logs to a Windows folder you can play around and see if Good supports that functionality on Windows. I tried a couple different things and it didnt work. When I have more time I will try again. If you solve this issue please let me know. I dont want to just remove that line from the boilerplate.

poeticninja commented 10 years ago

I resolved this by removing the tmp folder and Good sending to a log file. Right now it just prints to the console.