2015-08-20 4 views
0

Было бы очень полезно, если бы кто-нибудь мог сказать мне, как это сделать. Я следую инструкциям в приведенной ниже ссылке, чтобы развернуть приложение, упомянутое в этой ссылке. http://installfest.railsbridge.org/installfest/deploy_a_rails_appHeroku push reject - Сбой компиляции: не удалось скомпилировать приложение Ruby

Однако развертывание происходит сбой с сообщением об ошибке:

remote:  Cleaning up the bundler cache. 
remote: -----> Preparing app for Rails asset pipeline 
remote:  Running: rake assets:precompile 
remote:  rake aborted! 
remote:  NameError: undefined local variable or method `hRails' for main:Object 
remote:  Tasks: TOP => environment 
remote:  (See full trace by running task with --trace) 
remote: ! 
remote: !  Precompiling assets failed. 
remote: ! 
remote: 
remote: !  Push rejected, failed to compile Ruby app 
remote: 
remote: Verifying deploy.... 
remote: 
remote: !  Push rejected to desolate-peak-2535. 
remote: 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/desolate-peak-2535.git' 

Вот лог-сервер:

015-08-20T07:54:20.729142+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app 
015-08-20T08:21:44.563972+00:00 heroku[slug-compiler]: Slug compilation started 
015-08-20T08:21:44.563994+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app 
015-08-20T08:26:26.742224+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Ruby app 
015-08-20T08:26:26.742136+00:00 heroku[slug-compiler]: Slug compilation started 
+3

выполните поиск вашего проекта для строки «hRails» и замените его на «Rails» – p4sh4

ответ

0

Вы должны быть в состоянии воспроизвести это локально, запустив rake assets:precompile. Строка 3 вашего журнала ошибок. Тогда ошибка явно говорит, что это не удалось, где сказано: Precompiling assets failed. И, наконец, где-то вы используете переменную hRails, которая не найдена. Вероятно, опечатка, и вы имеете в виду Rails. Найдите свой проект для hRails, и это будет ошибка.