herokuにてデプロイ作業中にエラーが出てしまい解決できないのでご教授いただけると幸いです。
【現状】
heroku deploページにある以下の手順で作業を進めておりました。
Deploy using Heroku Git Use git in the command line or a GUI tool to deploy this app. Install the Heroku CLI Download and install the Heroku CLI. If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key. $ heroku login Create a new Git repository Initialize a git repository in a new or existing directory $ cd my-project/ $ git init $ heroku git:remote -a tim-leaf-84051 Deploy your application Commit your code to the repository and deploy it to Heroku using Git. $ git add . $ git commit -am "make it better" $ git push heroku master You can now change your main deploy branch from "master" to "main" for both manual and automatic deploys, please follow the instructions here. Existing Git repository For existing repositories, simply add the heroku remote $ heroku git:remote -a tim-leaf-84051
heroku git:remote -a tim-leaf-84051までは問題なく進みましたが
git add .
が
taka@masterMacBook-Air freemarket_sample_67e % git add . error: open(".bashrc.save"): Permission denied error: unable to index file '.bashrc.save' fatal: adding files failed taka@masterMacBook-Air freemarke
となります。
当然このまま進めてエラーとなってしまうのですが勉強不足で原因がわかりません。
taka@masterMacBook-Air freemarket_sample_67e % git commit -am "make it better" [master c0d0d55] make it better 1 file changed, 4 insertions(+)
Enumerating objects: 4626, done. Counting objects: 100% (4626/4626), done. Delta compression using up to 4 threads Compressing objects: 100% (3782/3782), done. Writing objects: 100% (4626/4626), 6.67 MiB | 419.00 KiB/s, done. Total 4626 (delta 2051), reused 2440 (delta 527) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Determining which buildpack to use for this app remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Installing bundler 2.3.10 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.7.3 remote: -----> Installing dependencies using bundler 2.3.10 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Fetching gem metadata from https://rubygems.org/......... 〜〜中略〜〜 remote: Bundle completed (55.70s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v16.13.1-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: /tmp/build_fe405a08/vendor/ruby-2.7.3/lib/ruby/2.7.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError remote: /tmp/build_fe405a08/vendor/bundle/ruby/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here remote: /tmp/build_fe405a08/vendor/ruby-2.7.3/lib/ruby/2.7.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE remote: /tmp/build_fe405a08/vendor/bundle/ruby/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:208: warning: previous definition of BUFSIZE was here remote: /tmp/build_fe405a08/vendor/ruby-2.7.3/lib/ruby/2.7.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket remote: /tmp/build_fe405a08/vendor/bundle/ruby/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:504: warning: previous definition of Socket was here remote: Missing encryption key to decrypt file with. Ask your team for your master key and write it to /tmp/build_fe405a08/config/master.key or put it in the ENV['RAILS_MASTER_KEY']. remote: 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 tim-leaf-84051. remote: To https://git.heroku.com/tim-leaf-84051.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/tim-leaf-84051.git'
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。