-
Make sure you have node installed from here : http://nodejs.org/.
-
Go to the farnsworth directory and do :
npm install
-
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 -
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 -
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>
dbsiegel/farnsworth
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple Scaffolding for my nodeJS appds
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published