From 55a99318bf3afd45da1349fa4f2002f605db4acf Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Mon, 10 Feb 2014 13:43:36 -0500 Subject: [PATCH] Added scripts: { start: "node app.js" } in package.json (per Heroku recommendation) --- README.md | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 345993d54c..f7aa3f04a2 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,7 @@ From the [Node.js Documentation](http://nodejs.org/api/cluster.html#cluster_how_ `cluster_app.js` allows you to take advantage of this feature by forking a process of `app.js` for each CPU detected. For the majority of applications serving HTTP requests, -this is a resounding boon. However, the cluster module is still in experimental stage, therefore it should only be used after understanding its purpose and behavior. To use it, simply run `node cluster_app.js`. **Its use is entirely optional and `app.js` is not tied in any way to it**. As a reminder, if you plan to use `cluster_app.js` instead of `app.js`, be sure to indicate that in `Procfile` if you are deploying your app to Heroku. +this is a resounding boon. However, the cluster module is still in experimental stage, therefore it should only be used after understanding its purpose and behavior. To use it, simply run `node cluster_app.js`. **Its use is entirely optional and `app.js` is not tied in any way to it**. As a reminder, if you plan to use `cluster_app.js` instead of `app.js`, be sure to indicate that in `package.json` when you are ready to deploy your app. ### What is this Rails 3.1-style asset pipeline that you mentioned in Features? This is how you typically define static files inside HTML, Jade or any template for that matter: diff --git a/package.json b/package.json index a2cc257081..b58bad93f9 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "hackathon-starter", "version": "0.0.0", + "scripts": { + "start": "node app.js" + }, "dependencies": { "async": "~0.2.10", "bcrypt-nodejs": "~0.0.3",