Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我在生产服务器上有一些应用程序。我正在使用设计。我有问题,因为当用户想要更改密码时,他收到了带有链接的电子邮件,但链接有 localhost:3000 并且它不起作用。我怎样才能改变它?
在 config/environments 中,您需要设置要使用的操作邮件程序的默认 url
例如
配置/环境/production.erb
config.action_mailer.default_url_options = { :host => 'production.url.com' }