git push heroku master 总是失败?

git push heroku master keep failing?

我在 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 的所有内容,捆绑安装,git 添加、提交和推送。我删除了gemfile.lock。我做错了什么?欢迎提问。

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

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

`