私はちょうど10章を終えました。「パスワードを忘れた」ロジックをテストしたときに、プロダクションから私のGmailアカウントに送られた電子メールを見たいと思っていました。production.rbがherokuにプッシュされていない
動作しませんでした。私は理由を知っていますが、production.rbの2つのバージョンがどのように同期していないのか分かりません。
今、私はsample_app用(マスター)ブランチ上だ、と私はプッシュしようとするとき、私はこれらのメッセージを取得しています...、私を混乱させる
abundantmind:~/workspace/sample_app (master) $ git push
Everything up-to-date
abundantmind:~/workspace/sample_app (master) $ git push heroku
Everything up-to-date
abundantmind:~/workspace/sample_app (master) $
生産に関連する行理由このような.RBファイルを見て...
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
# host = '<your heroku app>.herokuapp.com'
host = 'serene-dusk-31281.herokuapp.com'
config.action_mailer.default_url_options = { host: host }
ActionMailer::Base.smtp_settings = {
そしてHerokuの上、production.rbの同じセクションには、次のようになります...
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
今、私の質問...
1)明らかにそうでないときにgitがすべてのことを同期していると教えてくれるのはなぜですか?
は(実は、私はgitのは存在しないかなり確信しているので、私は問題は、キーボードと椅子の間にあることを受け入れる)だけプッシュする最も簡単な方法は何
と
2)私が第12章で前進できるように、heroku(そしてbitbucket)までのproduction.rb?