Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document setup of development environment #6

Open
nilclass opened this issue May 9, 2012 · 3 comments
Open

Document setup of development environment #6

nilclass opened this issue May 9, 2012 · 3 comments

Comments

@nilclass
Copy link
Member

nilclass commented May 9, 2012

I'm new to this. I'll figure out how to get things up and running, but others maybe not. Will document here.

@nilclass
Copy link
Member Author

nilclass commented May 9, 2012

  • First I installed nodejs:
wget  http://nodejs.org/dist/v0.6.17/node-v0.6.17.tar.gz
tar xzf node-v0.6.17.tar.gz
cd node-v0.6.17
./configure --prefix=/opt/nodejs && make -j3 && sudo make install
export PATH="$PATH:/opt/nodejs/bin"
  • Starting node:
node server.js

Server running at ports 80

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: listen EACCES
    at errnoException (net.js:670:11)
    at Array.0 (net.js:756:28)
    at EventEmitter._tickCallback (node.js:192:40)
  • Looks like I need to configure the port, doing so in config.js.
  • Starting node again:
node server.js
Server running at ports 10010
404 Not Found
.undefined/index.html
  • Looks like I need to configure more.

@michielbdejong
Copy link
Member

see config.sample.js
in your case you would probably have to add either 'localhost' or 'localhost:10010' to the 'host' section

@nilclass
Copy link
Member Author

nilclass commented May 9, 2012

Ok, thanks Michiel, this is what my config.js looks like now (based on the one from repo, probably most stuff not needed):

exports.config = {
  port: 10010,
  redirect: {
    'libredocs.nodejitsu.com': 'http://libredocs.org',
    'www.libredocs.org': 'http://libredocs.org',
    'www.libredoc.org': 'http://libredocs.org',
    'libredoc.org': 'http://libredocs.org'
  },
  host: {
    'libredocs.org': '/static',
    'mich.libredocs.org': '/static',
    'libredocs.local': '/static',
    'localhost:10010': '/static'
  }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants