简体   繁体   English

如何在heroku上使用具有声明授权的Rails 2.3.8?

[英]How do I use rails 2.3.8 with declarative authorization on heroku?

help rails 3 came out yesterday, we have a fully functional rails 2.3.8 app, but our deployment on heroku doesn't work because declarative_authorization demands rails 2.1 or higher help rails 3昨天发布,我们有一个功能齐全的rails 2.3.8应用程序,但是我们在heroku上的部署无法正常工作,因为declarative_authorization要求rails 2.1或更高版本

That is a very big problem, how can I solve it, any quick hacks, workarounds? 那是一个非常大的问题,我该如何解决它,任何快速的技巧,解决方法?

Make sure your .gems file starts with: 确保您的.gems文件开头为:

rails --version=2.3.8

But as you've stated, declarative_authorization will then go an install the Rails 3.0.0 gems over the top of your rails install, breaking the lot. 但是,正如您已经说过的那样,declarative_authorization将在Rails安装的顶部进行一次Rails 3.0.0 gem的安装,从而打破了很多。 You can get around this in your gems manifest, by using: 您可以使用以下方法在宝石清单中解决此问题:

declarative_authorization --ignore-dependencies

Of course, you'll also need to separately include each dependency for declarative_authorization in your gems manifest. 当然,您还需要在gem清单中分别包含对clarificationative_authorization的每个依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM