Skip to content

Instantly share code, notes, and snippets.

@lance
Created May 11, 2011 17:12
Show Gist options
  • Save lance/966889 to your computer and use it in GitHub Desktop.
Save lance/966889 to your computer and use it in GitHub Desktop.
Deploying TorqueBox
>> lanceball @ Neptune () ~/torquebox/current/jboss <<
$ foreman export upstart /etc/init
[foreman export] writing: /etc/init/jboss.conf
[foreman export] writing: /etc/init/jboss-torquebox.conf
[foreman export] writing: /etc/init/jboss-torquebox-1.conf
torquebox: ./bin/run.sh
$ start jboss
jboss start/running
$ restart jboss
jboss start/running
application:
root: /path/to/app
queues:
/queues/slow_task_queue:
/queues/fast_task_queue:
messaging:
/queues/slow_task_queue: SlowTaskHandler
/queues/fast_task_queue: FastTaskHandler
jobs:
mail.notifier:
job: Mail::Notifier
cron: '0 */5 * * * ?'
description: Deliver queued mail notifications
services:
TwitterFeedConsumer:
singleton: true
name: Twitter Feed Consumer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment