首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >production.rb不是被推给heroku的

production.rb不是被推给heroku的
EN

Stack Overflow用户
提问于 2016-04-24 07:22:54
回答 1查看 33关注 0票数 0

好了,我刚刚完成了第10章,并希望看到电子邮件发送到我的gmail帐户时,我测试了“忘记密码”的逻辑。

它没有起作用。我知道为什么,但我不确定production.rb的两个版本是如何不同步的。

现在我在sample_app的(主)分支上,当我尝试推送时,我收到了这些消息……

代码语言:javascript
运行
复制
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文件中的相关行如下所示...

代码语言:javascript
运行
复制
# 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的相同部分看起来像这样。

代码语言:javascript
运行
复制
# 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章了?

EN

Stack Overflow用户

发布于 2016-05-05 02:17:59

你合并你的分支到master了吗?如果没有,请运行以下命令

$ git merge account-activation-password-reset

首先,在推送github或bitbucket上的所有文件时执行新的提交

代码语言:javascript
运行
复制
$ git push origin master

然后尝试在heroku上再次部署您的应用程序,并再次迁移它。

代码语言:javascript
运行
复制
$ git push heroku
$ heroku run rake db:migrate
票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36817576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档