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?
jomaxro
(Joshua Rosenfeld)
2
This should work:
cd /var/discourse
nano containers/app.yml
5 个赞
This just gives me a black screen. How do I access the text file to make changes?
jomaxro
(Joshua Rosenfeld)
4
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 个赞
thanks this works after i started over with a fresh install from a fresh droplet. it wasn’t working previously thanks.
1 个赞
您可以使用 templates 文件夹中的其中一个模板。例如,如果您想运行独立服务器,只需使用 standalone.yml 文件。
示例:
cp /var/discourse/samples/standalone.yml /var/discourse/containers/app.yml
您可以在其中进行必要的更改。
2 个赞
据我所知,当不在容器中时,containers 是 /var/discourse 的一个子目录;不存在 /containers 目录。所以,如果我没记错的话,INSTALL.md 中的那一行“或手动编辑 /containers/app.yml”应该改为“或手动编辑 containers/app.yml”或“或手动编辑 /var/discourse/containers/app.yml”。