Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (24 sloc) 0.717 kb
#!/usr/bin/env coffee
fs = require 'fs'
json = fs.readFileSync('/home/dotcloud/environment.json')
environment = JSON.parse(json)
process.env.REDISTOGO_URL = environment.DOTCLOUD_REDIS_REDIS_URL
for k, v of environment
process.env[k] = v
adapter = ''
if environment.HUBOT_IRC_NICK
adapter = 'irc'
else if environment.HUBOT_CAMPFIRE_ROOMS
adapter = 'campfire'
name = environment.HUBOT_IRC_NICK || 'Hubot'
exec = require('child_process').execFile
exec(
'/home/dotcloud/current/node_modules/.bin/coffee',
[ 'bin/hubot', '-a', adapter, '-n', name ],
{ env: process.env },
(err, stdout, stderr) ->
console.log stdout
console.log stderr
if err != null
console.log "error: " + err
)
Jump to Line
Something went wrong with that request. Please try again.