you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (3 children)

You should have zero "reddit.local" on your server. No need to add it to the hosts file or try to route requests using it.

You'll need to change a bunch of chat config to not use reddit.local instead. Anywhere you see reddit.local put portcity.online instead.

[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Ok, I'll do that but first ... did you see how I broke the UI while working on the rest of the admin config? I'm not sure but I think it was while I was working on this section: Set the default subs $ cd ~/src/reddit/r2 $ paster shell run.ini # paste the following, hit enter: from r2.models import * srs = [Subreddit._by_name(n) for n in ("pics", "videos", "science", "technology")] LocalizedDefaultSubreddits.set_global_srs(srs) LocalizedFeaturedSubreddits.set_global_srs([Subreddit._by_name('pics')]) exit()

Here's a pastebin of the section of the github I was working on when the UI broke: https://pastebin.com/CEe7hjHi

[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

This is what I found when I ran grep reddit.local

reddit@redditclone:~$ sudo grep -r "reddit.local" /etc/
[sudo] password for reddit: 
/etc/letsencrypt/accounts/acme- v02.api.letsencrypt.org/directory/df4b3d506c0d55f36baa0507c6f684f8/meta.json:{"creation_host": "reddit.local", "creation_dt": "2019-07-18T01:30:22Z"}
/etc/mtab:reddit@reddit.local:/home/reddit/src/reddit 
/home/reddit/vm fuse.sshfs rw,nosuid,nodev,user=reddit 0 0

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

There are 4 mentions of reddit.local related to chat in the README. You need to update those 4.