I want to install a plugin for development, what should I do?

AI-generated summary

A user, ์˜๊ด‘_์ž„, is trying to install the Discourse rating plugin for development. They followed the guide to install Discourse for development using Docker but encountered issues. hawm suggested cloning the plugin repository to the plugin folder and restarting the server. ์˜๊ด‘_์ž„ tried this, but encountered a โ€œfatal: Not a git repositoryโ€ error. hawm pointed out the need to use the correct git repository URL and not restart Docker.

์˜๊ด‘_์ž„ eventually solved the issue at home by removing the existing plugin file and re-cloning the repository. However, they still face issues installing the plugin on their companyโ€™s server, which is also a development install. Stephen asked about the differences between the two environments, and ์˜๊ด‘_์ž„ explained that their home environment was set up using the โ€œBeginners Guide to Install Discourse on Ubuntu for Developmentโ€, while their company environment uses Docker Compose, Docker, PostgreSQL, Redis, and Discourse source.

The issue persists on the company server, with the same โ€œfatal: Not a git repositoryโ€ error occurring after restarting Docker. Stephen inquired about the usage of the company server, wondering if itโ€™s being used by other users, which might be contributing to the issue.

I want to install a plugin What should I do?

cd /var/discourse
nano containers/app.yml

I do not have a file named app.yml.
This guide does not help me.
Is there no other way?

I Install Discourse for Development using Docker. I want to install a discourse rating plugin. I thinkโ€ฆ

cd ~discourse/plugin 
git clone https://github.com/angusmcleod/discourse-ratings
docker restart

Is this my idea?

How was your server installed?

guide to install discourse for development using docker

Clone the plugin repository to you plugin folder and restart the rails server if you start already.

Clone the plugin repository to you plugin folder and docker restart
After :
fatal : Not a git repository

what is problem?

Make sure you are really using a git repository URL like GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things ยท GitHub
If you follow Install Discourse for development using Docker to start developing, you donโ€™t have to restart docker, just go into the discourse folder and call ./bin/docker/unicorn to start server or Ctrl + C to stop.

really using a git repository URL Like โ€˜GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things ยท GitHubโ€™
Which file should I use?

Clone the whole repository to your plugin folder then restart the server will work

cd ~discourse/plugins folder
plugin file already exists.

I put the discourse rating plugin in the existing plugin folder and restarted the server.

Go to /admin/plugin you can find your plugin

  1. Go to /discourse/plugins
  2. plugins in git clone โ€˜https://github.com/angusmcleod/discourse-ratings.gitโ€™
  3. docker discourse helth starting ใ… ใ… 
  4. sudo docker logs 2fwk40482dw : fatal: Not a git repository (or any parent up to mount point /discourse)

I do not know until nowโ€ฆ

Please Help me.. ํฌ

Why your step 3? Post your all operating procedure here?

Thank you
go to cd ~discourse/plugins discourse-rating remove
After
git clone GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things ยท GitHub

I solved
Good at home.
but
The discourse installed in the company seems to have a problem.
Can not restart docker after installing plug-in
sudo docker logs 2fwk40482dw
: fatal: Not a git repository (or any parent up to mount point /discourse)

Is the company server a production install or development install?

It is possible to modify source based on docker-compose.

development install

If it was installed in the same way as your copy at home it should behave in the same way.

How do these two environments differ, is the installation at your company being used by other users?

  1. Go to /discourse/plugins
    1. plugins in input https://github.com/angusmcleod/discourse-ratings.gitโ€™
  2. docker restart
  3. sudo docker logs
    • Error : fatal: Not a git repository (or any parent up to mount point /discourse)