简体   繁体   中英

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.

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.

你可能需要这个https://github.com/strongloop/node-foreman它是一个领班的节点端口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM