Comment modifier le fichier "/containers/app.yml" depuis le workspace ssh root@digitalocean dropletname?

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

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?

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

Vous pouvez utiliser l’un des modèles du dossier templates. Par exemple, si vous souhaitez exécuter un serveur autonome, utilisez simplement le fichier standalone.yml.

Exemple :

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

Vous pouvez y apporter les modifications nécessaires.

Autant que je sache, lorsqu’il n’est pas dans le conteneur, containers est un sous-répertoire de /var/discourse ; il n’y a pas de répertoire /containers. Donc, si je ne me trompe pas, la ligne « ou modifiez /containers/app.yml manuellement » dans INSTALL.md devrait se lire « ou modifiez containers/app.yml manuellement » ou « ou modifiez /var/discourse/containers/app.yml manuellement ».