好了,我刚刚完成了第10章,并希望看到电子邮件发送到我的gmail帐户时,我测试了“忘记密码”的逻辑。
它没有起作用。我知道为什么,但我不确定production.rb的两个版本是如何不同步的。
现在我在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) $ 这让我感到困惑,因为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 = 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)将production.rb推送到heroku (和bitbucket)的最简单方法是什么,这样我就可以继续第12章了?
发布于 2016-05-05 02:17:59
你合并你的分支到master了吗?如果没有,请运行以下命令
$ git merge account-activation-password-reset
首先,在推送github或bitbucket上的所有文件时执行新的提交
$ git push origin master然后尝试在heroku上再次部署您的应用程序,并再次迁移它。
$ git push heroku
$ heroku run rake db:migratehttps://stackoverflow.com/questions/36817576
复制相似问题