Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Running a node.js app with upstart and Procfile

Running a node.js app with upstart and Procfile

Problem

I have a node.js application.

I have written a Procfile with the following contents.

subscription-engine-processor: node index.js

Not sure whether i am doing it right, but i tried Running it with the ruby gem foreman.

$ foreman start

nothing happens. The process doesn't run.

Please do comment on whether i am doing it right, if there's any other way of running this is my local. What i ultimately want to do is to export this using Upstart when its finally deployed in production.

Problem courtesy of: Sunil

Solution

I'm not exactly sure what foreman does, but I can give you the following links so that you can read more in depth tutorials on how to setup Node with Upstart:

http://howtonode.org/deploying-node-upstart-monit
http://caolanmcmahon.com/posts/deploying_node_js_with_upstart
http://dailyjs.com/2010/03/15/hosting-nodejs-apps/
http://blog.clock.co.uk/2011/04/11/deploying-node-js-apps/

Hope these help.

Solution courtesy of: alessioalex

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Running a node.js app with upstart and Procfile

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×