Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2012, 08:23 PM   PM User | #1
utan
New to the CF scene

 
Join Date: Dec 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
utan is an unknown quantity at this point
Node.js ubuntu server

Hi,

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..
utan is offline   Reply With Quote
Old 12-15-2012, 11:34 PM   PM User | #2
utan
New to the CF scene

 
Join Date: Dec 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
utan is an unknown quantity at this point
Hi,

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
utan is offline   Reply With Quote
Reply

Bookmarks

Tags
ape server, node.js, server side js

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:34 AM.


Advertisement
Log in to turn off these ads.