Created
November 29, 2011 01:58
-
-
Save dhanji/1403012 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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