首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Push拒绝未能检测到set buildpack heroku/ruby

Push拒绝未能检测到set buildpack heroku/ruby
EN

Stack Overflow用户
提问于 2016-03-30 17:09:01
回答 1查看 176关注 0票数 0

我试图将下面的项目添加到我的空闲聊天"https://github.com/PDaily/lita-destiny“中,我已经在空闲聊天中添加了lita集成。我已经在heroku网站上做了一个新的应用程序,我已经添加到全局配置vars,我的LITA_TOKEN,GITHUB_URL和BUNGIE_API_KEY。我使用了cmd和heroku工具包,并登录到heroku。然后,我将目录更改为lita-命运文件夹所在的位置。然后我做了

代码语言:javascript
复制
Bundle install
Git add. 
Git add -u
Git commit -m "heroku" 
Git push heroku master.

我已经安装了所有本机宝石,也在该文件夹的根目录中是一个gems文件。但是,我在标题中得到了错误。我也表演过

heroku构建包:设置heroku/ruby

代码语言:javascript
复制
2016-03-31T00:14:25+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.33 sample#load-avg-5m=0.24 sample#load-avg-15m=0.215 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13328628.0kB sample#memory-cached=482376kB sample#memory-redis=294048bytes sample#hit-rate=1 sample#evicted-keys=0
2016-03-31T00:15:24+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.255 sample#load-avg-5m=0.235 sample#load-avg-15m=0.215 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13328504.0kB sample#memory-cached=482372kB sample#memory-redis=294048bytes sample#hit-rate=1 sample#evicted-keys=0
2016-03-31T00:16:48.562723+00:00 heroku[api]: Release v12 created by munkeyboy14@gmail.com
2016-03-31T00:16:48.562723+00:00 heroku[api]: Deploy 97376bc by munkeyboy14@gmail.com
2016-03-31T00:16:48.723963+00:00 heroku[slug-compiler]: Slug compilation started
2016-03-31T00:16:48.723974+00:00 heroku[slug-compiler]: Slug compilation finished
2016-03-31T00:16:48.698905+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-31T00:16:48+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.22 sample#load-avg-5m=0.24 sample#load-avg-15m=0.22 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13328232.0kB sample#memory-cached=482380kB sample#memory-redis=294048bytes sample#hit-rate=1 sample#evicted-keys=0
2016-03-31T00:16:50.125875+00:00 heroku[web.1]: Starting process with command `bundle exec lita`
2016-03-31T00:16:52.409755+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/lita-slack-1.7.2/lib/lita/adapters/slack/api.rb:63:in `call_api': Slack API call to rtm.start returned an error: invalid_auth. (RuntimeError)
2016-03-31T00:16:52.409772+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-slack-1.7.2/lib/lita/adapters/slack/api.rb:38:in `rtm_start'
2016-03-31T00:16:52.409773+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-slack-1.7.2/lib/lita/adapters/slack/rtm_connection.rb:20:in `build'
2016-03-31T00:16:52.409774+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-slack-1.7.2/lib/lita/adapters/slack.rb:22:in `run'
2016-03-31T00:16:52.409774+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-4.7.0/lib/lita/robot.rb:80:in `run'
2016-03-31T00:16:52.409775+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-4.7.0/lib/lita.rb:80:in `run'
2016-03-31T00:16:52.409776+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-4.7.0/lib/lita/cli.rb:77:in `start'
2016-03-31T00:16:52.409778+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
2016-03-31T00:16:52.409778+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
2016-03-31T00:16:52.409779+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
2016-03-31T00:16:52.409780+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
2016-03-31T00:16:52.409800+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/bin/lita:23:in `load'
2016-03-31T00:16:52.409782+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/lita-4.7.0/bin/lita:6:in `<top (required)>'
2016-03-31T00:16:52.409800+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/bin/lita:23:in `<main>'
2016-03-31T00:16:53.126028+00:00 heroku[web.1]: Process exited with status 1
2016-03-31T00:16:53.137278+00:00 heroku[web.1]: State changed from starting to crashed

以上是heroku日志中的最新错误消息。

EN

回答 1

Stack Overflow用户

发布于 2016-03-30 18:22:38

如果我正确理解你的问题,对丽塔的工作方式有一个根本的误解。丽塔宝石有一个可执行文件(lita new),它为您创建一个新的lita机器人。然后,将像lita -命运之类的插件添加到lita bot的Gemfile中。

所以你会得到这个错误,因为你没有把Heroku识别为Ruby应用程序的代码--你是在推一个宝石。

你应该做的是

代码语言:javascript
复制
cd ../some/place/else
gem install lita
lita new
cd lita
echo 'web: bundle exec lita' >> Procfile
bundle install
git init
git add .
git commit -m 'Initial commit'
heroku apps:create
git push heroku master

然后,您可以将lita -命运插件添加到lita bot的Gemfile (您刚才创建的项目)中,并将config.handlers.destiny_handler.api_key = 'XXXX'添加到该项目中的lita_config.rb文件中。还可以将Slack键添加到lita_config.rb文件中。

资料来源:丽塔博士heroku博士

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36315378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档