【问题标题】:running rails 3.2 / mongoid app on heroku fails在 heroku 上运行 rails 3.2 / mongoid 应用程序失败
【发布时间】:2012-01-29 23:21:18
【问题描述】:

如果有人可以帮助我进行 heroku 部署,我想现在。

我已经使用以下 Gemfile 设置了我的 Rails 3.2 应用程序

source 'https://rubygems.org'

gem 'rails', '3.2.0'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'mongoid'
gem 'bson_ext'
gem 'mongoid_slug'
gem 'heroku'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem "compass", ">= 0.12.alpha"

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

我已经运行了rails g mongoid:config 命令

通过 heroku 支持,我添加了 mongolab 扩展并将 mongoid.yml 环境变量更改为 MONGOLAB_URI

当我随后部署应用程序时,它无法在 heroku 上运行。

我不确定发生了什么,但我在 Heroku 日志中收到此错误消息:

WARNING:  Invalid .gemspec format in '/app/.bundle/gems/ruby/1.9.1/specifications/actionmailer-3.2.0.gemspec'
2012-01-29T19:13:46+00:00 app[web.1]: Could not find activemodel-3.2.0 in any of the sources

这里是完整的日志文件:

https://gist.github.com/1700231

有人遇到过同样的问题吗?我不确定问题是来自我的设置,还是我需要在 Rails 中添加一些东西才能使用 mongoid?

干杯。

【问题讨论】:

标签: ruby-on-rails heroku mongoid


【解决方案1】:

这对b*tt有点痛苦,但我终于到了。

http://railsapps.github.com/rails-heroku-tutorial.html

是在 heroku 上播放 rails 3.2 的正确位置。

这表示我很头疼,当一个人想学习时,遇到这么多障碍并没有太多乐趣。 我告诉你的那一刻,Octopress 看起来不错:)

好的,我们继续

【讨论】:

    猜你喜欢
    • 2014-11-15
    • 1970-01-01
    • 2014-10-24
    • 2023-03-24
    • 1970-01-01
    • 2012-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多