Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 使用我的域名进行确认时,设备会中断_Ruby On Rails_Heroku_Devise - Fatal编程技术网

Ruby on rails 使用我的域名进行确认时,设备会中断

Ruby on rails 使用我的域名进行确认时,设备会中断,ruby-on-rails,heroku,devise,Ruby On Rails,Heroku,Devise,我已经在我的应用程序上设置了Desive来处理注册/确认电子邮件和登录。我的域名www.mydomain.com映射到我的生产应用程序,网址为production myapp.herokuapp.com 一切都很好,但现在,如果我改变 config.action_mailer.default_url_options = { :host => 'production-myapp.herokuapp.com' } 到 Desive在确认后尝试将用户返回到域名时中断。显然,我不想让用户返回到p

我已经在我的应用程序上设置了Desive来处理注册/确认电子邮件和登录。我的域名
www.mydomain.com
映射到我的生产应用程序,网址为
production myapp.herokuapp.com

一切都很好,但现在,如果我改变

config.action_mailer.default_url_options = { :host => 'production-myapp.herokuapp.com' }

Desive在确认后尝试将用户返回到域名时中断。显然,我不想让用户返回到
production myapp.herokuapp.com
url,因为这太令人困惑了


有人知道我如何用我的域名解决这个问题吗?谢谢

不使用URL?删除
http://
部分…我为什么不使用URL?-这是一个实时应用程序。删除“http://”没有什么区别。删除
http://www.
使用主机
config.action\u mailer.default\u url\u options={host:“mydomain.com”}
config.action_mailer.default_url_options = { :host => 'http://www.mydomain.com' }