在 Heroku i18n gem 上部署 redmine 时出现问题

发布于 2024-10-09 15:53:10 字数 306 浏览 0 评论 0原文

我在 heroku 上部署 redmine 时遇到问题。我已经按照教程中的描述进行了设置,并且在本地运行没有问题。它推送到 heroku,但当我尝试通过浏览器访问该网站时,出现应用程序崩溃错误。错误显示:

缺少 i18n 0.4.2 gem。请gem install -v=0.4.2 i18n (在 /disk1/home/slugs/387746_aba0dc0_7ca6-e147f05a-688f-4291-903f-994eb1a4080f/mnt 中)

我尝试安装 gem,但没有成功。为什么会发生这种情况以及什么可以让它消失?

I'm having issues getting redmine deployed on heroku. I've set it up as described in tutorials, and have it running locally without a problem. It pushes to heroku, but I get an app crashed error when I try to visit the site via browser. The error reads:

Missing the i18n 0.4.2 gem. Please gem install -v=0.4.2 i18n
(in /disk1/home/slugs/387746_aba0dc0_7ca6-e147f05a-688f-4291-903f-994eb1a4080f/mnt)

I've tried installing the gem, but that hasn't worked. Why is this happening and what will make it go away?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

郁金香雨 2024-10-16 15:53:10

我通过在项目目录的根目录中添加创建一个名为 Gemfile 的文件来实现此目的,其中包含以下内容。

source 'http://rubygems.org'

gem 'rails', '2.3.5'
gem 'i18n', '0.4.2'

i got this to work by adding creating a file named Gemfile to the root of the project directory with the following contents.

source 'http://rubygems.org'

gem 'rails', '2.3.5'
gem 'i18n', '0.4.2'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文