環境
MACOS sierra
Rails: 5.1.4
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
heroku/7.0.17 darwin-x64 node-v10.0.0
atom v7.9.0
terminal-plus 0.14.5
元々、cloud9のエディタを使ってherokuにデプロイしていてたのですが、今回ローカルに環境を作って、herokuにデプロイしようとすると、リジェクトしてしまいます。
bash
1To https://git.heroku.com/"APP-NAME".git 2 ! [remote rejected] master -> master (pre-receive hook declined) 3error: failed to push some refs to 'https://git.heroku.com/"APP-NAME".git'
Githubにあげる分には大丈夫ですし、同じファイル構成のアプリをエディタを変え、cloud9でデプロイすると普通にあげる事もできます。
以下、push後の全文です。 知恵をお借りしたいです。よろしくお願い申し上げます。
bash
1kakelaser-no-iMac:hello_app kakelaser$ git push heroku 2 3・・・ 4 5remote: Psych::SyntaxError: (<unknown>): could not find 6remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/secrets.rb:27:in ` 7block in parse' 8remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/secrets.rb:24:in ` 9each' 10remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/secrets.rb:24:in ` 11each_with_object' 12remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/secrets.rb:24:in ` 13parse' 14remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:391 15:in `secrets' 16remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:172 17:in `key_generator' 18remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/globalid-0.4.1/lib/global_id/railtie.rb:26: 19in `block (2 levels) in <class:Railtie>' 20remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 21 22_load_hooks.rb:67:in `block in execute_hook' 23remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 24_load_hooks.rb:60:in `with_execution_control' 25remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 26_load_hooks.rb:65:in `execute_hook' 27remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 28_load_hooks.rb:50:in `block in run_load_hooks' 29remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 30_load_hooks.rb:49:in `each' 31remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/lazy 32_load_hooks.rb:49:in `run_load_hooks' 33remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finish 34er.rb:73:in `block in <module:Finisher>' 35remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:3 360:in `instance_exec' 37remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:3 380:in `run' 39remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:5 409:in `block in run_initializers' 41remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:5 428:in `run_initializers' 43remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353 44:in `initialize!' 45remote: /tmp/build_577b109f50a1ef36665635be637182bc/config/environment.rb:5:in `<top (required)>' 46remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329 47:in `require' 48remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329 49:in `require_environment!' 50remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:445 51:in `block in run_tasks_blocks' 52remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/t 53ask.rb:62:in `block (2 levels) in define' 54remote: /tmp/build_577b109f50a1ef36665635be637182bc/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required) 55>' 56remote: Tasks: TOP => environment 57remote: (See full trace by running task with --trace) 58remote: ! 59remote: ! Precompiling assets failed. 60remote: ! 61remote: ! Push rejected, failed to compile Ruby app. 62remote: 63remote: ! Push failed 64remote: Verifying deploy... 65remote: 66remote: ! Push rejected to secret-castle-68801. 67remote: 68To https://git.heroku.com/"APP-NAME".git 69 ! [remote rejected] master -> master (pre-receive hook declined) 70error: failed to push some refs to 'https://git.heroku.com/"APP-NAME".git'
4/39 21:20 追記
herokuのConfig Variablesを確認した所、cloud9でデプロイしたのは項目が記入されているのに対して、ローカルのは書かれていないのでコレが怪しいかもしれないです。
cloud9ではよしなにやってくれてたんですかね・・。 見てみます。
回答1件
あなたの回答
tips
プレビュー