无法“运行”在Heroku上 [英] Unable to "run" on Heroku

查看:148
本文介绍了无法“运行”在Heroku上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Heroku部署了一个Clojure应用程序。当我运行/请求它时,我收到一个错误: http://glowing-planet-168.herokuapp.com / 。所以现在我想启动一个REPL来查看我是否可以获得更多信息。但是,当我尝试它时,我得到:

I have deployed a Clojure app to Heroku. When I run/request it I get an error: http://glowing-planet-168.herokuapp.com/. So now I want to start up a REPL to see if I can get some more info. But when I try it I get:

D:\Mijn documenten\My Dropbox\dev\clojure-projects\hebrewajax>heroku run lein repl

C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib/heroku/helpe
rs.rb:213:in ``': No such file or directory - tput cols (Errno::ENOENT)
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib
/heroku/helpers.rb:213:in `get_terminal_environment'
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib
/heroku/command/run.rb:16:in `index'
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib
/heroku/command.rb:114:in `send'
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib
/heroku/command.rb:114:in `run'
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/bin
/heroku:14
        from C:/RailsInstaller/Ruby1.8.7/bin/heroku:19:in `load'
        from C:/RailsInstaller/Ruby1.8.7/bin/heroku:19

当我做'heroku运行控制台'时,我得到同样的错误。我使用RailsInstaller安装了heroku。

I get the same error when I do 'heroku run console'. I installed heroku using RailsInstaller.

我在Windows XP上运行。

I am running on Windows XP.

有些宝石我必须安装除了heroku?

What could go wrong here? Some gem I have to installe besides heroku?

推荐答案

我没有使用heroku或Windows的经验,但它看起来像你'缺少shell命令'tput',这是(在这种情况下)用于获取终端窗口的宽度。如果我理解正确,你需要安装Cygwin,它可能已经与RailsInstaller一起安装。您可能还需要安装具有tput实用程序的'ncurses'软件包。祝你好运!

I don't have experience with heroku or Windows, but it looks like you're missing the shell command 'tput', which is (in this case) used to get the width of your terminal window. If I understand correctly, you need to have Cygwin installed, which might have been installed with RailsInstaller. You might also need to install the 'ncurses' package which has the tput utility. Good luck!

这篇关于无法“运行”在Heroku上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆