1

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.

Sunil
  • 3,424
  • 2
  • 24
  • 25

2 Answers2

3

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.

alessioalex
  • 62,577
  • 16
  • 155
  • 122
  • 1
    I made a change in the the Procfile. Replaced the '-' to '_' in my Procfile and it worked. Now its subscription_engine_processor: node index.js . – Sunil Jan 04 '12 at 09:45
1

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

Ryann Graham
  • 8,079
  • 2
  • 29
  • 32
Michael Dausmann
  • 4,202
  • 3
  • 35
  • 48