Sorry for restarting an old thread. But my question is can you use Discourse in a main directory? e.g. example.com (I have it like this)? Because there are images which are not showing up because they are using the url (http://discourse.example.com/blah/blah).
AI-generated summary
In a support thread titled ‘Do I need to rebuild when my domain name changes?’, malcolmjr414 asks if Discourse can be used in a main directory (e.g., example.com) and reports broken image URLs due to incorrect hostname settings. cpradio advises checking and correcting the hostname in app.yml, followed by running ./launcher rebuild app. malcolmjr414 struggles with executing the rebuild command, prompting cpradio to clarify the correct working directory (/var/discourse) and full command syntax. When malcolmjr414 shares a screenshot showing confusion about saving the file, cpradio confirms that saving is required and explains how to exit nano (CTRL + X). malcolmjr414 then encounters a ‘permission denied’ error, to which cpradio responds by recommending prefixing commands with sudo — specifically sudo nano containers/app.yml and sudo ./launcher rebuild app. Finally, malcolmjr414 confirms success and thanks cpradio for the help. The core takeaway is that changing the hostname in app.yml requires a rebuild using sudo ./launcher rebuild app to apply the changes properly.
Sounds like you have your hostname improperly defined then… (in your app.yml – make sure you do a ./launcher rebuild app after changing it)
Awesome! I’ve changed it just don’t know how to rebuild it because I enter it and it just keeps creating a new line lol
you should be in /var/discourse and then run that command, be sure to have the entire command
./launcher rebuild app
Yes, you need to press CTRL + X to exit, it will ask you about saving.
I’m getting permission denied, so now I believe I need to change the file permissions, how and what do I change them to?
No, just use sudo.
sudo nano containers/app.yml (save your changes)
sudo ./launcher rebuild app
That worked! Thank you
