Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 无法使用回形针将裸体应用程序推到Heroku_Ruby On Rails_Heroku_Paperclip - Fatal编程技术网

Ruby on rails 无法使用回形针将裸体应用程序推到Heroku

Ruby on rails 无法使用回形针将裸体应用程序推到Heroku,ruby-on-rails,heroku,paperclip,Ruby On Rails,Heroku,Paperclip,我们有一个应用程序已经在Heroku(竹子)上运行了一年多。昨天推动变革时,由于未能安装回形针gem,推动被拒绝。在失败之前,没有对创业板列表进行任何更改。我尝试了一个全新的赤裸裸的应用程序,得到了同样的结果。看起来竹垛在某种程度上发生了变化。还有谁经历过这种情况,或者知道可能发生了什么 以下是复制步骤: $ rails temp-app $ cd temp-app $ cat >.gems rails -v 2.3.14 paperclip -v 2.5.0 <control-D&

我们有一个应用程序已经在Heroku(竹子)上运行了一年多。昨天推动变革时,由于未能安装回形针gem,推动被拒绝。在失败之前,没有对创业板列表进行任何更改。我尝试了一个全新的赤裸裸的应用程序,得到了同样的结果。看起来竹垛在某种程度上发生了变化。还有谁经历过这种情况,或者知道可能发生了什么

以下是复制步骤:

$ rails temp-app
$ cd temp-app
$ cat >.gems
rails -v 2.3.14
paperclip -v 2.5.0
<control-D>
$ git init
$ git add .
$ git commit -m "init"
$ heroku create --stack bamboo
$ git push heroku master

我确实从Heroku支持部门得到了答案:Paperclip指定了对活动记录的依赖性,如:'activerecord','>=2.3.0',这会导致安装最新的AR版本。几天前的最新版本是3.2,它在Rails2.3上被破坏,因此失败了


我通过在.gems中添加--忽略对回形针gem的依赖项,并手动将依赖项添加到.gems中来解决此问题。

还建议heroku对此提供支持--这里的某些人最近可能遇到过这种情况,但我也会在那里开罚单。
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Configure Rails to log to stdout
       Installing rails_log_stdout... done

-----> Installing gem rails 2.3.14 from http://rubygems.org
       Successfully installed activesupport-2.3.14
       Successfully installed activerecord-2.3.14
       Successfully installed actionpack-2.3.14
       Successfully installed actionmailer-2.3.14
       Successfully installed activeresource-2.3.14
       Successfully installed rails-2.3.14
       6 gems installed

-----> Installing gem paperclip 2.5.0 from http://rubygems.org
       ERROR:  While executing gem ... (NoMethodError)
           undefined method `call' for nil:NilClass
 !     Heroku push rejected, failed to install gem