用active_admin部署Heroku

马特乌斯·厄本斯基(Mateusz Urbanski)

我用active_admin界面编写了简单的统计应用程序,但我不想将其托管在heroku上。当我输入git push heroku master时,出现以下错误:

 Fetching git://github.com/gregbell/active_admin.git
       fatal: Could not parse object 'ac4918ef99cf0272eb5f744b7e3f3fc7cde5811f'.
       Git error: command `git reset --hard ac4918ef99cf0272eb5f744b7e3f3fc7cde5811f`
       in directory
       /tmp/build_8776c788-ed11-4ae5-b374-8618b8523219/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ac4918ef99cf
       has failed.
       If this error persists you could try removing the cache directory
       '/tmp/build_8776c788-ed11-4ae5-b374-8618b8523219/vendor/bundle/ruby/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
       Bundler Output: Fetching gem metadata from https://rubygems.org/........
       Fetching gem metadata from https://rubygems.org/..
       Fetching git://github.com/gregbell/active_admin.git
       fatal: Could not parse object 'ac4918ef99cf0272eb5f744b7e3f3fc7cde5811f'.
       Git error: command `git reset --hard ac4918ef99cf0272eb5f744b7e3f3fc7cde5811f`
       in directory
       /tmp/build_8776c788-ed11-4ae5-b374-8618b8523219/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ac4918ef99cf
       has failed.
       If this error persists you could try removing the cache directory
       '/tmp/build_8776c788-ed11-4ae5-b374-8618b8523219/vendor/bundle/ruby/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby/Rails app

To [email protected]:intense-forest-6444.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:intense-forest-6444.git'

这是我的gemfile.lock:

GIT
  remote: git://github.com/bmabey/database_cleaner.git
  revision: df55cf7b746e792dba1d11eea0d6e31e3abc7e8c
  specs:
    database_cleaner (1.1.1)

GIT
  remote: git://github.com/gregbell/active_admin.git
  revision: ac4918ef99cf0272eb5f744b7e3f3fc7cde5811f
  branch: rails4
  specs:
    activeadmin (0.6.0)
      arbre (>= 1.0.1)
      bourbon (>= 1.0.0)
      coffee-rails (>= 3.2.0)
      devise (>= 3.0.2)
      formtastic (>= 2.3.0.rc2)
      inherited_resources (>= 1.4.1)
      jquery-rails (>= 3.0.0)
      jquery-ui-rails (>= 4.0.0)
      kaminari (>= 0.13.0)
      rails (>= 3.2.0)
      ransack (>= 1.0.0)
      sass-rails (>= 3.2.0)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.0.0)
      actionpack (= 4.0.0)
      mail (~> 2.5.3)
    actionpack (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    activemodel (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
    activerecord (4.0.0)
      activemodel (= 4.0.0)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.0)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activesupport (4.0.0)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    addressable (2.3.5)
    arbre (1.0.1)
      activesupport (>= 3.0.0)
    arel (4.0.0)
    atomic (1.1.14)
    bcrypt-ruby (3.1.2)
    bootstrap-sass (2.3.2.2)
      sass (~> 3.2)
    bourbon (3.1.8)
      sass (>= 3.2.0)
      thor
    builder (3.1.4)
    capybara (2.1.0)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    childprocess (0.3.9)
      ffi (~> 1.0, >= 1.0.11)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.1)
      climate_control (>= 0.0.3, < 1.0)
    coffee-rails (4.0.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0.beta, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.6.3)
    countries (0.9.2)
      currencies (>= 0.4.0)
    currencies (0.4.2)
    devise (3.1.0)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    diff-lcs (1.2.4)
    erubis (2.7.0)
    execjs (2.0.1)
    factory_girl (4.2.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.2.1)
      factory_girl (~> 4.2.0)
      railties (>= 3.0.0)
    ffi (1.9.0)
    formtastic (2.3.0.rc2)
      actionpack (>= 3.0)
    growl (1.0.3)
    haml (4.0.3)
      tilt
    haml-rails (0.4)
      actionpack (>= 3.1, < 4.1)
      activesupport (>= 3.1, < 4.1)
      haml (>= 3.1, < 4.1)
      railties (>= 3.1, < 4.1)
    has_scope (0.6.0.rc)
      actionpack (>= 3.2, < 5)
      activesupport (>= 3.2, < 5)
    hike (1.2.3)
    i18n (0.6.5)
    inherited_resources (1.4.1)
      has_scope (~> 0.6.0.rc)
      responders (~> 1.0.0.rc)
    jbuilder (1.5.1)
      activesupport (>= 3.0.0)
      multi_json (>= 1.2.0)
    jquery-rails (3.0.4)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (4.0.5)
      railties (>= 3.1.0)
    json (1.8.0)
    kaminari (0.14.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    launchy (2.3.0)
      addressable (~> 2.3)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.25)
    mini_portile (0.5.1)
    minitest (4.7.5)
    multi_json (1.8.0)
    nokogiri (1.6.0)
      mini_portile (~> 0.5.0)
    orm_adapter (0.4.0)
    paperclip (3.5.1)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.0)
      mime-types
    pg (0.17.0)
    pg_search (0.7.0)
      activerecord (>= 3.1)
      activesupport (>= 3.1)
      arel
    phony (1.9.0)
    phony_rails (0.4.2)
      activesupport (>= 3.0)
      countries (>= 0.8.2)
      phony (>= 1.7.7)
    polyamorous (0.6.4)
      activerecord (>= 3.0)
    polyglot (0.3.3)
    rack (1.5.2)
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (4.0.0)
      actionmailer (= 4.0.0)
      actionpack (= 4.0.0)
      activerecord (= 4.0.0)
      activesupport (= 4.0.0)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.0)
      sprockets-rails (~> 2.0.0)
    rails_12factor (0.0.2)
      rails_serve_static_assets
      rails_stdout_logging
    rails_serve_static_assets (0.0.1)
    rails_stdout_logging (0.0.2)
    railties (4.0.0)
      actionpack (= 4.0.0)
      activesupport (= 4.0.0)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.1.0)
    ransack (1.0.0)
      actionpack (>= 3.0)
      activerecord (>= 3.0)
      polyamorous (~> 0.6.0)
    rb-fsevent (0.9.3)
    rdoc (3.12.2)
      json (~> 1.4)
    responders (1.0.0)
      railties (>= 3.2, < 5)
    rspec-core (2.14.5)
    rspec-expectations (2.14.3)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-mocks (2.14.3)
    rspec-rails (2.14.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    rubyzip (0.9.9)
    sass (3.2.10)
    sass-rails (4.0.0)
      railties (>= 4.0.0.beta, < 5.0)
      sass (>= 3.1.10)
      sprockets-rails (~> 2.0.0)
    sdoc (0.3.20)
      json (>= 1.1.3)
      rdoc (~> 3.10)
    selenium-webdriver (2.35.1)
      childprocess (>= 0.2.5)
      multi_json (~> 1.0)
      rubyzip (< 1.0.0)
      websocket (~> 1.0.4)
    shoulda-matchers (2.4.0)
      activesupport (>= 3.0.0)
    sprockets (2.10.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    thor (0.18.1)
    thread_safe (0.1.3)
      atomic
    tilt (1.4.1)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    turbolinks (1.3.0)
      coffee-rails
    tzinfo (0.3.37)
    uglifier (2.2.1)
      execjs (>= 0.3.0)
      multi_json (~> 1.0, >= 1.0.2)
    warden (1.2.3)
      rack (>= 1.0)
    websocket (1.0.7)
    xpath (2.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  activeadmin!
  bootstrap-sass
  capybara
  coffee-rails (~> 4.0.0)
  database_cleaner!
  devise
  factory_girl_rails
  growl
  haml-rails
  jbuilder (~> 1.2)
  jquery-rails
  kaminari
  launchy
  paperclip
  pg
  pg_search
  phony_rails
  rails (= 4.0.0)
  rails_12factor
  rb-fsevent (= 0.9.3)
  rspec-rails (~> 2.0)
  sass-rails (~> 4.0.0)
  sdoc
  selenium-webdriver (= 2.35.1)
  shoulda-matchers
  turbolinks
  uglifier (>= 1.3.0)

在我的Gemfile我有:gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4

我试图删除gemfile.lock并重新捆绑所有内容,但仍无法正常工作。有任何想法吗?

立体斯科特

看来active_admin的rails4分支已删除!

您可以更新gemfile并指定标签或提交引用。截至目前,v0.6.1是最新版本,因此您可以执行以下操作:

gem "activeadmin", github: "gregbell/active_admin", tag: "v0.6.1"

..那将解决您的问题。另外,正如您在评论中指出的那样,选择另一个特定的修订版也可以消除该错误。

gem "activeadmin", github: "gregbell/active_admin", ref: "82ff48d51525bdf55c96e50d8650d45f2a6716ed"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

用active_admin部署Heroku

来自分类Dev

如何优化active_admin

来自分类Dev

Rails active_admin控制器

来自分类Dev

在active_admin中选择字段

来自分类Dev

Ruby on Rails使用active_admin和ransack,对active_admin:resource的页面调度错误

来自分类Dev

可选的belongs_to,用于重命名的active_admin资源

来自分类Dev

索引页上的列总和active_admin rails

来自分类Dev

如何在active_admin中包括关联的模型

来自分类Dev

rails g active_admin:安装错误

来自分类Dev

用heroku部署蒸气

来自分类Dev

如何停止更改应用程序整体外观的active_admin css.scss文件

来自分类Dev

PG ::错误:错误:列引用“状态”在active_admin中是不明确的

来自分类Dev

Rails:如何在active_admin的has_many关系中显示名称而不是ID或地址?

来自分类Dev

当我使用“active_admin/select2”时,ActiveAdmin“has_many”表单重复

来自分类Dev

如何停止更改我的应用程序整体外观的active_admin css.scss文件

来自分类Dev

如何将一个应用程序拆分为3个以允许独立部署?(Rails 3.2,heroku,PostgreSQL,Active Admin 1.0)

来自分类Dev

Heroku添加上部署-Dspring.profiles.active = prod

来自分类Dev

用Heroku部署Symfony2:倾销资产

来自分类Dev

当我按下heroku时,Active Admin在本地工作,但在heroku上却无法工作

来自分类Dev

当我按下heroku时,Active Admin在本地工作,但在heroku上却不工作

来自分类Dev

Heroku的Puma部署问题

来自分类Dev

Heroku上的Typeorm部署

来自分类Dev

部署后的Heroku

来自分类Dev

在Heroku中部署石工

来自分类Dev

NodeJS Heroku部署错误

来自分类Dev

在Heroku上部署代码

来自分类Dev

无法在Heroku上部署

来自分类Dev

Heroku 错误部署

来自分类Dev

Heroku 部署错误

Related 相关文章

热门标签

归档