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

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?

1 Like

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.

3 Likes

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 https://github.com/angusmcleod/discourse-ratings.git
If you follow Beginners Guide to 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 ‘https://github.com/angusmcleod/discourse-ratings.git
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 https://github.com/angusmcleod/discourse-ratings.git

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?

1 Like

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)