Worker apps in Stackato

Posted by jamesf on 2013-04-19 14:35
OS: All / Any | Product: Stackato | tags: framework stackato worker

How do I deploy worker processes or long running apps?


To create a worker app, generally the standalone framework is the simplest method. You can use the "command" key in the stackato.yml. This tells Stackato's health manager to monitor this command as a long-running process.

For example:

mem: 128
  type: standalone
command: ruby worker.rb

If you are using another framework you may need to set processes:web to null using a tilde. Doing this tells Stackato's health manager not to expect a web process such as "rails server".

mem: 128
   type: rails3
command: bundle exec ruby worker.rb
   web: ~

Note that when using the command: key in your stackato.yml, no URL is allocated to the app.

For more information, check out the following parts of the Stackato documentation: