Worker apps in Stackato

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

How do I deploy worker processes or long running apps?

Answer: 

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
framework:
  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
framework:
   type: rails3
command: bundle exec ruby worker.rb
processes:
   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:
http://docs.stackato.com/deploy/other-frameworks.html
http://docs.stackato.com/reference/stackatoyml.html#stackato-yml-command