How do I edit my "/containers/app.yml file" from the root@digitialoceandropletname ssh workspace?

I installed discourse through DigitalOcean with the instructions here

The instructions read:

If you need to change or fix these settings after bootstrapping, edit your /containers/app.yml file

I am at the command prompt and logged into the ssh workspace

root@discourseforum:~#

Can someone please explain how I open the “/containers/app.yml file” file to edit it?

This should work:

cd /var/discourse
nano containers/app.yml
5 Likes

This just gives me a black screen. How do I access the text file to make changes?

Hmm…is the file not there?

What do you get when you run:

cd /var/discourse/containers
ls -la

Also, just to check, when you ran the commands in my previous post, you didn’t put a slash in front of containers, right?

2 Likes

thanks this works after i started over with a fresh install from a fresh droplet. it wasn’t working previously thanks.

1 Like

You can use one of the templates from the templates folder. For example if you would like to run a stand alone server just use the standalone.yml file.

Example:

cp /var/discourse/samples/standalone.yml /var/discourse/containers/app.yml

In there you can make the necessary changes.

2 Likes

AFAIK when not in the container, containers is a subdirectory of /var/discourse; there is no /containers directory. So unless I’m mistaken, the line “or edit /containers/app.yml manually” in INSTALL.md should read “or edit containers/app.yml manually” or “or edit /var/discourse/containers/app.yml manually”.

This topic was automatically closed after 2685 days. New replies are no longer allowed.