前提・実現したいこと
メール認証をアプリケーションに実装しようと思い、Rails tutrialのメール認証を参考に、Herokuのアドオンを有効化したいと考えています。
このリンクの11.4どうり進め、試しにリモートに反映されていることをチェックすると、以下のように表示されました
ts21:qusary ****$ git remote -v heroku https://git.heroku.com/qusary.git (fetch) heroku https://git.heroku.com/qusary.git (push) origin https://github.com/*****/qusary.git (fetch) origin https://github.com/*****/qusary.git (push)
###エラー
commitの時点で、以下のメッセージが表示されました。
commitするものがないようです。
ts21:qusary ****i$ git commit -m "add heroku_addon" On branch heroku nothing to commit, working tree clean
ダメもとでpushしてもやっぱりエラーが出ます。
ts21:qusary ****$ git push heroku master error: src refspec master does not match any error: failed to push some refs to 'https://git.heroku.com/qusary.git'
予想
git のbranchが違うのが理由かと考えています。
heroku addon自体はインストールできているけどgitの操作を誤っているのかと
原因について、解決方法をご存知の方はご享受いただくと幸いです。
###追記
ts21:qusary *****$ git branch --list * develop mailer master
「git branch --list」の実行結果を質問欄に追記可能ですか?
追記させていただきました
よろしくお願いします。
Heroku は通常 master 以外のブランチを受け付けないようなのですが、master ブランチを push してみても状況に変化は見られませんか?
---
「staging 環境がほしい」「GitHub の Pull Request に応じた環境を立ち上げたい」ということであれば、次のリンクが参考になるかもしれません
* [Review Apps | Heroku Dev Center]( https://devcenter.heroku.com/articles/github-integration-review-apps )
* [Pipelines | Heroku Dev Center]( https://devcenter.heroku.com/articles/pipelines )
ご指摘どうりmasterに移動させて解決しました!
ありがとうございます
解決した場合、他者の回答ないし自己回答として内容をまとめて それをベストアンサーに設定することで、この質問を解決済みにすることができます
回答1件
あなたの回答
tips
プレビュー