Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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..

  • #2
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •