Skip to content

Instantly share code, notes, and snippets.

@dhanji
Created November 29, 2011 01:58
Show Gist options
  • Save dhanji/1403012 to your computer and use it in GitHub Desktop.
Save dhanji/1403012 to your computer and use it in GitHub Desktop.
#!/bin/bash /usr/local/bin/coffee
-#
-# CLU by Dhanji R. Prasanna. Cluster Manager for EC2 processes.
-
-sys = require 'util'
-spawn = (require 'child_process').spawn
-
-
-# Cell descriptor
-cell =
- name: 'A'
- host: 'fluent.io'
- workers: [ 'mailsy-dev' ]
-
-
-# First build the entire app into production layout.
-bld = spawn './build', ['nodeploy', '--compile']
-
-bld.stdout.on 'data', (buf) ->
- line = buf.toString 'utf8', 0, buf.length
- console.log line.replace /\[INFO\]\s*/, ''
-
-bld.on 'exit', (code) ->
- console.log 'Completed build #{code}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment