2013-11-06 3 views
0

Я видел много вопросов по этим же линиям, но я попытался обновить пакет и выполнить обновление Gemfile.lock без успеха. Вот вывод, когда я пытаюсь нажать на мой Heroku мерзавца репо:Heroku с рельсами 4 приложение не может установить драгоценные камни через Bundler

-----> Ruby app detected 
-----> Compiling Ruby/Rails 
-----> Using Ruby version: ruby-1.9.3-jruby-1.7.4 
-----> Installing JVM: openjdk7-latest 
-----> Installing dependencies using Bundler version 1.3.2 
     Ruby version change detected. Clearing bundler cache. 
     Old: jruby 1.7.4 (1.9.3p392) 2013-07-24 fffffff on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64] 
     New: jruby 1.7.4 (1.9.3p392) 2013-07-24 fffffff on OpenJDK 64-Bit Server VM 1.7.0_45-b31 [linux-amd64] 
     Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment 
     Picked up JAVA_TOOL_OPTIONS: -Djava.rmi.server.useCodebaseOnly=true 
     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. 
     You have added to the Gemfile: 
     * source: git://github.com/gregbell/active_admin.git (at master) 
     You have deleted from the Gemfile: 
     * source: https://github.com/gregbell/active_admin.git (at master) 
     You have changed in the Gemfile: 
     * activeadmin from `git://github.com/gregbell/active_admin.git (at master)` to 
     `no specified source` 
     Bundler Output: Picked up JAVA_TOOL_OPTIONS: -Djava.rmi.server.useCodebaseOnly=true 
     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. 

     You have added to the Gemfile: 
     * source: git://github.com/gregbell/active_admin.git (at master) 

     You have deleted from the Gemfile: 
     * source: https://github.com/gregbell/active_admin.git (at master) 

     You have changed in the Gemfile: 
     * activeadmin from `git://github.com/gregbell/active_admin.git (at master)` to 
     `no specified source` 
! 
!  Failed to install gems via Bundler. 
! 

!  Push rejected, failed to compile Ruby app 

Кто-нибудь есть какие-либо понять, почему это может быть провал? Линии, показывающие изменение в active_admin, не были обновлены с тех пор, как давно, и с тех пор происходит толкание к героку.

Также в отношении You are trying to install in deployment mode after changing your Gemfile Я установил пакет и добавил свой файл Gemfile.lock и несколько раз нажал. Вид работы статуса GIT в моем проекте:

# On branch master 
# Untracked files: 
# (use "git add <file>..." to include in what will be committed) 
# 
# .ruby-version 
# app/assets/stylesheets/_base.scss 
# app/assets/stylesheets/_colors.scss 
# app/assets/stylesheets/_footer.scss 
# app/assets/stylesheets/_forms.scss 
# app/assets/stylesheets/_header.scss 
# app/assets/stylesheets/_icons.scss 
# app/assets/stylesheets/_k.scss 
# app/assets/stylesheets/_k_mixins.scss 
# app/assets/stylesheets/_k_ratings.scss 
# app/assets/stylesheets/_project_windows.scss 
# app/assets/stylesheets/_reset.scss 
# app/assets/stylesheets/application.scss 
# app/assets/stylesheets/ie_fixes.scss 
# app/assets/stylesheets/mixins.scss 
nothing added to commit but untracked files present (use "git add" to track) 

и мой .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 

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

# Ignore database config file 
database.yml 

*.iml 
.rvmrc 
.idea 
+0

Я также попытался создать новое приложение Heroku для развертывания, и это до сих пор с той же ошибкой. – Jimmy

ответ

1

Если вы используете предварительную версию Bundler 1.4 при запуске bundle на локальном компьютере, вы работаю в вопрос, где URL-адрес для GitHub драгоценных камней изменен с помощью протокола git к https: https://github.com/bundler/bundler/issues/2600

чтобы решить эту проблему, вы должны либо обновление до более-недавнего предварительного выпуска Bundle r 1.4 локально (запустив gem install --pre bundler или удалите предварительную загрузку Bundler 1.4 и используйте 1.3.x.

+0

ahh good catch, проблема, с которой я столкнулся с пакетом 1.3.x, столкнулась с уровнем слишком глубоких ошибок, пытаясь установить пакет – Jimmy

0

Эта проблема возникает из-за того, что вы передаете плохой (старый) Gemfile.lock сервер heroku. Вам необходимо обновить Gemfile.lock на heroku после добавления/удаления драгоценных камней.

выполнить следующие шаги:

  1. сохранить HEROKU_APP_NAME существующего Heroku приложения (HEROKU_APP_NAME.herokuapp.com)
  2. удалить приложение Heroku из https://dashboard.heroku.com/apps и создать новый
  3. переименовать новый Heroku приложение к старому HEROKU_APP_NAME
  4. удалить Gemfile.lock из вашего git repo
  5. удалить Gemfile.lock из вашего локального проекта и формы .gitignore (если он существует)
  6. запустить пакет установки
  7. вносить изменения в GIT репозиторий (новый созданный Gemfile.lock)
  8. запустить мерзавец толчок Heroku мастер
Смежные вопросы