【问题标题】:git push heroku master keep failing?git push heroku master 不断失败?
【发布时间】:2018-06-14 15:22:39
【问题描述】:

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

【问题讨论】:

标签: git heroku cloud9


【解决方案1】:

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

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

`

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-21
    • 1970-01-01
    • 2021-05-19
    • 2013-09-05
    • 1970-01-01
    • 2018-07-31
    • 2015-08-12
    • 2011-05-23
    相关资源
    最近更新 更多