在heroku上运行rails 3.2 / mongoid app失败了

时间:2012-01-29 23:21:19

标签: ruby-on-rails heroku mongoid

如果有人能帮助我完成我的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?

干杯。

1 个答案:

答案 0 :(得分:2)

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

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

是在heroku上展示rails 3.2的最佳位置。

这说我的头脑受伤了,当想要学习时,没有太多的乐趣来获得这么多障碍。 在我告诉你的那一刻,Octopress看起来很好:)

好吧,让我们继续前进