Node.js ubuntu server
I couldn't find a better place to put this question so I've decided to put it here..
Well I have ubuntu server and installed Node.js, http://nodejs.org/dist/v0.9.3/node-v0.9.3.tar.gz installed successfully..
I am new to it , I understand a bit of Ape server but since it's not been maintained and is slowly dying, I decided to learn Node , but I don't know how to set up the file to be run by node..
In Ape after installing saves the server side JS files in /var/ape/ then when you start it this loads it with the server..
Now in Node i've seen in tutorial that you need to run in terminal node server.js
but when I do that it gives me an error that node is not defined ..
I don't understand the process to load a file server side that you created..
Can somebody please help me to understand how to load a JS file that I have created..
I've tried "node /opt/serverFiles/server.js" i get ReferenceError: node is not defined.
I am using ubuntu server..
Never mind, I feel a dumb.
What happened is that I was typing node and inside it verbose I was trying to run node server.js ..
What a newbie mistake...
Appreciate for reading.. regards
|All times are GMT +1. The time now is 07:27 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.