运行Heroku包时出错

时间:2014-06-26 01:51:48

标签: ruby-on-rails heroku ruby-on-rails-4

我刚刚更新了我的Gemfile并升级到rails 4.0.0和ruby 2.0.0。我跑了bundle installbundle update,然后推到了Heroku。然后我迁移了数据库。

该应用程序适用于localhost,但在Heroku上显示应用程序错误。

所以我运行了heroku run bundle update,这给出了以下错误:

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze 
by running `bundle install --no-deployment`.

    You have added to the Gemfile:
    * source: https://github.com/NoamB/sorcery (at master)
    * source: rubygems repository https://rubygems.org/
* rails (= 4.0.0)
* sass-rails (~> 4.0.0)
* uglifier (>= 1.3.0)
* coffee-rails (~> 4.0.0)
* jquery-rails
* turbolinks
* jbuilder (~> 1.2)
* sorcery
* thin
* pg
* rails_12factor
* sdoc
* mailcatcher
* rspec-rails
* sqlite3
* foreman
* quiet_assets


You have changed in the Gemfile:
* sorcery from `https://github.com/NoamB/sorcery (at master)` to `no specified source`

这就是我的.gitignore文件:

# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
#   git config --global core.excludesfile ~/.gitignore_global

# Ignore bundler config
.bundle

# Ignore the default SQLite database.
db/*.sqlite3
db/*.sqlite3-journal
db/development.sqlite3

# Ignore all logfiles and tempfiles.
log/*.log
tmp

.DS_Store
.sass-cache

.ruby-version
Procfile
.rspec

Heroku上的错误只是一个标准的"应用程序错误。应用程序中发生错误,无法提供您的页面。"

以下是我的Heroku logs

0 个答案:

没有答案