推送到Heroku - 挂起来http://github.com/gregbell/active_admin.git

时间:2014-03-28 13:51:12

标签: ruby-on-rails heroku activeadmin

我不知道为什么推送到heroku失败了。我试过很多次,但它没有用。

我使用以下操作系统/工具:

  • Windows 7
  • rails version 4.0.3,
  • ruby​​ version 2
  • Node.js的
  • Github
  • 的Heroku

这是我得到的错误:

$ git push heroku master
Initializing repository, done.
Counting objects: 150, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (139/139), done.
Writing objects: 100% (150/150), 175.21 KiB | 190.00 KiB/s, done.
Total 150 (delta 8), reused 0 (delta 0)

Ruby app detected
Compiling Ruby/Rails
Using Ruby version: ruby-2.0.0
Warning:
       Removing `Gemfile.lock` because it was generated on Windows.
       Bundler will do a full resolve so native gems are handled properly.
       This may result in unexpected gem versions being used in your app.
       In rare occasions Bundler may not be able to resolve your dependencies at
 all.
       https://devcenter.heroku.com/articles/bundler-windows-gemfile
       Installing dependencies using 1.5.2
       New app detected loading default bundler cache
       Running: bundle install --without development:test --path vendor/bundle -
-binstubs vendor/bundle/bin -j4
       Fetching http://github.com/gregbell/active_admin.git

      Timed out compiling Ruby app (15 minutes)
      See https://devcenter.heroku.com/articles/slug-compiler#time-limit

      To git@heroku.com:warm-stream-5170.git
      [remote rejected] master -> master (pre-receive hook declined)
      error: failed to push some refs to 'git@heroku.com:warm-stream-5170.git'

gemfile如下:

      source 'https://rubygems.org'
      gem 'rails', '4.0.3'
      gem 'sqlite3'
      gem 'sass-rails', '~> 4.0.0'
      gem 'uglifier', '>= 1.3.0'
      gem 'coffee-rails', '~> 4.0.0'
      gem 'jquery-rails'
      gem 'turbolinks'
      gem 'jbuilder', '~> 1.2'
      group :doc do
      gem 'sdoc', require: false
      end
      gem 'activeadmin', github: 'gregbell/active_admin'
      gem 'activeadmin-axlsx'
      gem 'devise'
      gem 'cancan'
      gem 'rolify'

1 个答案:

答案 0 :(得分:0)

在Gemfile中使用它

gem 'activeadmin', :git => "git://github.com/gregbell/active_admin.git"

此外,对于生产用途pg

删除gem 'sqlite3'并替换为以下代码:

group :production do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
end