git push heroku master继续失败?

时间:2018-06-14 15:22:39

标签: git heroku cloud9

我一直在Cloud9上收到此错误:

    remote:        /tmp/build_3d423dbc0c4cb1831da6664e6804fe37/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote:        Tasks: TOP => environment
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to daeshaun-todo-app.
remote: 
To https://git.heroku.com/daeshaun-todo-app.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/daeshaun-todo-app.git'

我已经改变了从sqlite3到postsql,bundle install,git add,commit和push的所有内容。我删除了gemfile.lock。我做错了什么?随意问问题。

1 个答案:

答案 0 :(得分:0)

阅读答案,第二部为我工作:Heroku upload-Precompiling assets failed 事实证明这是预编译的问题。在config/application.rb

# config/application.rb
config.assets.initialize_on_precompile = false

`