你好
我更改了论坛域名,在进行密码重置时遇到了以下问题:
如您所见,邮件底部的重置链接中仍使用了旧域名。我可以通过手动替换为新域名来重置密码,但如何修复此问题,以避免其他用户遇到同样的情况?
谢谢
Changed the company domain in settings?
Yes I have gone through and changed all the settings.
I believe it has changed in the app.yml, rebuilt correct?
Yes, I followed Jeff’s instructions here: Change the domain name or rename your Discourse
Or at least I think I did. I’m receiving emails to the correct address, anyhow.
I also just noticed on the Terms of Service page at /t/terms-of-service/4 that all references to the domain have updated but references to the company name have not.
To clarify what I did with app.yml, I did
./launcher enter app
discourse remap forum.olddomain.org discuss.newdomain.org
rake posts:rebake
and also
./launcher enter app
discourse remap olddomain.org newdomain.org
rake posts:rebake
Oh wait, I can see what I have done wrong. I haven’t edited the hostname line in app.yml.
Edit is app.yml
cd /var/discourse
sudo nano containers/app.yml
Edit
Hostname for your Discourse? [discourse.example.com]:
Aperte ctrl + x depois y e ENTER
sudo ./launcher rebuild app
Got it working! Thanks a lot.