영광_임
(영광 임)
2019 年 7 月 22 日午後 11: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 Ratings プラグインをインストールしたいと考えています。
cd ~discourse/plugin
git clone https://github.com/angusmcleod/discourse-ratings
docker restart
この考え方で正しいでしょうか?
영광_임
(영광 임)
2019 年 7 月 23 日午前 1: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 日午前 1:51
4
プラグインリポジトリをプラグインフォルダにクローンし、Rails サーバーが既に起動している場合は再起動してください。
영광_임
(영광 임)
2019 年 7 月 23 日午前 6:01
5
プラグインリポジトリをプラグインフォルダにクローンし、Docker を再起動してください。
その後:
fatal: Not a git repository
問題は何でしょうか?
hawm
(Hawm)
2019 年 7 月 23 日午前 6:18
6
git リポジトリの URL(例:https://github.com/angusmcleod/discourse-ratings.git)を正しく使用していることを確認してください。
Install Discourse for development using Docker に従って開発を開始する場合、Docker の再起動は不要です。discourse フォルダに移動し、./bin/docker/unicorn を実行してサーバーを起動するか、Ctrl + C で停止してください。
영광_임
(영광 임)
2019 年 7 月 23 日午前 6:56
7
hawm
(Hawm)
2019 年 7 月 23 日午前 6:59
8
プラグインフォルダにリポジトリ全体をクローンし、サーバーを再起動すると動作します。
영광_임
(영광 임)
2019 年 7 月 23 日午前 7:12
9
cd ~discourse/plugins フォルダ
プラグインファイルは既に存在します。
既存のプラグインフォルダに discourse rating プラグインを配置し、サーバーを再起動しました。
hawm
(Hawm)
2019 年 7 月 23 日午前 7:15
10
/admin/plugin に移動すると、プラグインが見つかります。
hawm
(Hawm)
2019 年 7 月 23 日午前 11:54
12
なぜステップ3なのか?ここですべての操作手順を投稿してください。
영광_임
(영광 임)
2019 年 7 月 23 日午後 1:38
13
ありがとうございます
cd ~discourse/plugins discourse-rating remove に移動
その後
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)
Stephen
(Stephen)
2019 年 7 月 23 日午後 2:13
14
会社のサーバーは本番環境のインストールですか、それとも開発環境のインストールですか?
영광_임
(영광 임)
2019 年 7 月 24 日午前 1:01
15
docker-compose に基づいてソースを変更することが可能です。
開発環境のインストール
Stephen
(Stephen)
2019 年 7 月 24 日午前 1:42
16
ご自宅の環境と同じ方法でインストールされているのであれば、同じように動作するはずです。
この 2 つの環境の違いは何でしょうか。また、会社でのインストールは他のユーザーも利用していますか?