gpt4 book ai didi

ruby-on-rails - 在 Rails 上使用react - ! [远程拒绝] master -> master(预接收 Hook 被拒绝)

转载 作者:太空宇宙 更新时间:2023-11-03 23:27:48 24 4
gpt4 key购买 nike

我正在使用 Rails 4.2.5,最近我在我的应用程序中添加了 react_on_rails。当我尝试在 Heroku 上部署代码时,出现错误(mkdir:无法创建目录)。应用程序使用几个 webpack,一个用于 Ruby,另一个用于 Node。

git push heroku master
Counting objects: 963, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (793/793), done.
Writing objects: 100% (963/963), 982.20 KiB | 0 bytes/s, done.
Total 963 (delta 384), reused 160 (delta 70)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Deleting 18 files matching .slugignore patterns.
remote: -----> Node.js app detected
remote: mkdir: cannot create directory ‘/tmp/build_2116c2c5be27b9852c9d716798b3bcf9/.heroku’: Not a directory
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to acceptance.
remote:
To https://git.heroku.com/acceptance.git
! [remote rejected] master -> master (pre-receive hook declined)

非常感谢任何帮助。

最佳答案

Heroku 团队帮助解决了此问题 - Heroku 团队的答复:

It looks like this project has a ".heroku" file checked into its root directory, which collides with the ".heroku" directory used to install runtimes like node, php, etc. You can keep this file from being pushed to Heroku by adding it to your .slugignore file like this:

echo ".heroku" >> .slugignore

git commit -am 'ignore .heroku file'

关于ruby-on-rails - 在 Rails 上使用react - ! [远程拒绝] master -> master(预接收 Hook 被拒绝),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41833126/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com