反应 Rails - ! [remote rejected] master -> master(pre-receive hook declined)
React on Rails - ! [remote rejected] master -> master (pre-receive hook declined)
我正在使用 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'
我正在使用 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'