Do I need to rebuild when my domain name changes?


#1

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.mysitename.com/blah/blah).


Change the domain name or rename my Discourse?
(cpradio) #2

Sounds like you have your hostname improperly defined then… (in your app.yml – make sure you do a ./launcher rebuild app after changing it)


#3

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


(cpradio) #4

you should be in /var/discourse and then run that command, be sure to have the entire command

./launcher rebuild app


#5

Below is what I’m seeing, do I save the file before I rebuild it?


(cpradio) #6

Yes, you need to press CTRL + X to exit, it will ask you about saving.


#7

I’m getting permission denied, so now I believe I need to change the file permissions, how and what do I change them to?


(cpradio) #8

No, just use sudo.

sudo nano containers/app.yml (save your changes)
sudo ./launcher rebuild app


#9

That worked! Thank you