Skip to content

dbsiegel/farnsworth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Farnsworth

image

  1. Make sure you have node installed from here : http://nodejs.org/.

  2. Go to the farnsworth directory and do : npm install

  3. To run the server as a single process do : node app.js
    By default the server runs on port 8000, if you want to change the port do : ```node app.js [PORT]`` . In this case the logs are in logs/app.log

  4. You can also run the server as a cluster of servers. To do that do: node bin/cluster.js
    This will bring up a number of servers that is equal to the number of CPUs you have, (i.e if you have an i7 mac, you will get a cluster of 8 servers). There is a master process that manages these servers and if one of them goes down, the master process brings back another slave. In this case each server will have its own log at logs/app[number].log

  5. To work with AWS (You most likely don't need to) , create a file at : ~/.aws/credentials . In there add:

    [default]
    aws_access_key_id = <YOUR_ACCESS_KEY_ID>
    aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>

About

Simple Scaffolding for my nodeJS appds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published