前提・実現したいこと
herokuにrailsアプリケーションをpushしたい
ここに質問の内容を詳しく書いてください。
(例)■■な機能を実装中に以下のエラーメッセージが発生しました。
herokuを使ってデプロイしようとしているのですが、うまいことできないです
git push heroku master
のコマンドを打った際にGemfile.lockが必要と出てくる
発生している問題・エラーメッセージ
(base) oonishiBookpuro:free oonishiteppei$ git push heroku master Enumerating objects: 17307, done. Counting objects: 100% (17307/17307), done. (略) 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: -----> Compiling Ruby/NoLockfile remote: remote: ! remote: ! Gemfile.lock required. Please check it in. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to text-that. remote: To https://git.heroku.com/text-that.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/text-that.git'
該当のソースコード
Ruby
1ソースコード
試したこと
Gemfile.lockが必要なのでpushしてみた
git add Gemfile.lock
git commit -m “add Gemfile.lock”
error: pathspec 'Gemfile.lock”' did not match any file(s) known to git
ファイルがないからpushできないとなった、
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー