영광_임
(영광 임)
2019 年7 月 22 日 23:08
1
我想安装一个插件,该怎么办?
This guide assumes that you have a self-hosted standard installation. We only support the standard method of install here, so these instructions assume you have a standard install .
This guide only applies to self-hosted Discourse instances. If you are using a managed hosting service, the available plugins are controlled by your hosting provider. For example, on our hosting these specific plugins are available by hosting tier.
As of mid-2025, many p…
cd /var/discourse
nano containers/app.yml
我没有名为 app.yml 的文件。
这份指南对我没有帮助。
还有其他方法吗?
我使用 Docker 安装了开发版的 Discourse。我想安装一个 Discourse 评分插件。我想……
cd ~discourse/plugin
git clone https://github.com/angusmcleod/discourse-ratings
docker restart
我的思路对吗?
영광_임
(영광 임)
2019 年7 月 23 日 01:36
3
使用 Docker 安装 Discourse 进行开发的指南
Developing using Docker
Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container.
Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly.
Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS.
See also Developing Discourse using a Dev Container …
hawm
(Hawm)
2019 年7 月 23 日 01:51
4
将插件仓库克隆到你的插件文件夹中,如果 Rails 服务器已启动,请重启它。
영광_임
(영광 임)
2019 年7 月 23 日 06:01
5
将插件仓库克隆到您的插件文件夹并重启 Docker。
之后出现:
fatal: 不是一个 git 仓库
问题出在哪里?
hawm
(Hawm)
2019 年7 月 23 日 06:18
6
영광_임
(영광 임)
2019 年7 月 23 日 06:56
7
hawm
(Hawm)
2019 年7 月 23 日 06:59
8
将整个仓库克隆到你的插件文件夹,然后重启服务器即可生效。
영광_임
(영광 임)
2019 年7 月 23 日 07:12
9
cd ~discourse/plugins 文件夹
插件文件已存在。
我已将 Discourse 评分插件放入现有的插件文件夹中,并重启了服务器。
hawm
(Hawm)
2019 年7 月 23 日 07:15
10
前往 /admin/plugin,您可以找到您的插件。
영광_임
(영광 임)
2019 年7 月 23 日 13:38
13
谢谢
进入 cd ~/discourse/plugins/discourse-rating 并移除
之后
执行 git clone GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things · GitHub
我已解决
在家没问题。
但是
公司安装的 Discourse 似乎出现了问题。
安装插件后无法重启 Docker
执行 sudo docker logs 2fwk40482dw
显示:fatal: Not a git repository (or any parent up to mount point /discourse)
영광_임
(영광 임)
2019 年7 月 24 日 01:01
15
可以根据 docker-compose 修改源代码。
开发环境安装
Stephen
(Stephen)
2019 年7 月 24 日 01:42
16
如果安装方式与您家中的副本相同,其行为应该一致。
这两个环境有何不同?贵公司的安装是否被其他用户使用?