Sunil
Sunil

Reputation: 3434

Running a node.js app with upstart and Procfile

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.

Upvotes: 1

Views: 2855

Answers (2)

Michael Dausmann
Michael Dausmann

Reputation: 4540

You might need this https://github.com/strongloop/node-foreman its a node port of foreman.

Upvotes: 1

alessioalex
alessioalex

Reputation: 63683

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.

Upvotes: 3

Related Questions