Unable to “run” on Heroku

匿名 (未验证) 提交于 2019-12-03 02:31:01

问题:

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 

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

I am running on Windows XP.

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

回答1:

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!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!