This cartridge for OpenShift allows you to configure and use Foreman to run processes in the background. Adapted to work with Ruby 2.4 or 2.3 here.
Once you have an existing OpenShift application, run the following command:
rhc cartridge add -a app_name http://cartreflect-claytondev.rhcloud.com/reflect?github=baip/openshift-foreman-cartridge
In the root of your application's git repository, create a file called Procfile. Then add one or more entries such as:
mytask: bundle exec rake resque:work QUEUE=*
Output from Foreman is written to $OPENSHIFT_LOG_DIR/foreman.log
This cartridge does not currently listen on any ports.
Licensed under the Apache Software License, v2.0. Please see LICENSE for more information.