Tag: 咖啡文字

Coffeescript – 手表开关不能与节点0.4.7一起工作

对coffeescript编译器的–watch指令不适用于node.js 0.4.7。 怎么修? (目前需要在Heroku上部署0.4.7节点。)

在Heroku上运行一个IRC bot

我已经启动了我的机器人,并且希望它在Heroku上运行,以保持它与我们的IRC通道持续连接。 这是我的procfile的内容: web: coffee marvin.coffee (这个bot的名字是marvin)。 这是marvin.coffee irc = require 'irc' config = require('./config').config client = new irc.Client(config.server, config.nick, config.options) # IRC-listeners 我从来没有创build任何HTTP服务器,我希望有可能简单地运行在Heroku这个咖啡脚本为了我的机器人运行,但我得到以下错误: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 机器人启动并join频道,但由于Heroku杀死进程而立即离开。 任何帮助将不胜感激 :-)