Install a Plugin

(Jason May) #46

…but I always trust my editor to Do The Right Thing (insert spaces) when I press the tab key.

Bzzt. Trust, But Verify.


This may be a dumb question, but do I have to execute these steps every time I want to update a plugin? Or does it update automatically, the way Discourse does?

(Alan Tan) #48

The plugin doesn’t update automatically. You only have to add the plugin into app.yml once but in order to update, the plugin, you’ll have to rebuild the container.

Alternatively, you can update the plugin through the admin dashboard.

(Tom Newsom) #49

Once installed, plugin updates can be done from admin/upgrade just like Discourse updates.


Thank you both for your answers. That’s awesome.

I’m really impressed by Discourse so far, everything has been intuitive and extremely well-made.

(Angus McLeod) #51

The additional script for adding private plugins didn’t work for me out of the box. These are the changes I ended up making:

  1. Additions to the conf file: - exec: echo "Host github\n\tStrictHostKeyChecking no\n\tHostName\n\tIdentityFile /root/.ssh/github_rsa\n" >> /root/.ssh/config

  2. Replace instances of /user/ with /root/.

  3. Change key file paths to /root/.ssh/github_rsa and /root/.ssh/ respectively.

  4. Change host in clone cmds from to github

Also, if you have multiple private plugins with GitHub, you need to add the SSH key to your whole account (i.e. Sign in to GitHub · GitHub), or use multiple keys.


Can anyone explain how to install plugin when using development install mode?


(Jay Pfaffman) #53

Change to the plugin directory and git clone the plugin.

I think that you can also install via the production means as well.

(Markus Kahl) #54

This doesn’t work for me. Any ideas? I just used the snippet from the standalone sample and it does nothing. Looks pretty much like the one given here.

## The docker manager plugin allows you to one-click upgrade Discourse
    - exec:
        cd: $home/plugins
          - mkdir -p plugins
          - git clone

(Jay Pfaffman) #55

Did you:

or, wait, in development you need to

cd /vagrant
bundle install
bundle exec rake db:migrate

or sometimes

(Arpit Jalan) #65

5 posts were split to a new topic: Unable to install plugins

(Sahil Doshi) #67

I cant find discourse folder in /var.
i have installed discourse by Bitnami Installer on Mac OSX Yosemite 10.10.2

how do install plugin, because not able to app.yml file

(Erlend Sogge Heggen) #68

Maybe @chipi92 from Bitnami has some insight on this one?


Hi @Sahil_Doshi

Bitnami Stacks are auto-contained, it means you can find everything you need to run Discourse under the same folder (aka. installation folder or installdir).
This folder is the one you indicated when you installed the stack either using the GUI installer or the command line.

To install a plugin in your Bitnami Discourse Stack please follow the instructions in our wiki page:

If you have any Bitnami specific question you are welcome to our Bitnami Community forum (run on Discourse BTW):


(Sahil Doshi) #70

Thank u @chipi92 it worked

(Cosmin Tătaru) #71

So I added the following to app.yml and did run a rebuild. However none of these plugins show up in my Discourse instance and I don’t know what to do:

## The docker manager plugin allows you to one-click upgrade Discourse
    - exec:
        cd: $home/plugins
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone
             - git clone 

(Spooky) #72

Is there an update the allows installing plugin without the whole building process that lasts a few minutes?

(Mittineague) #73

In my experience I’ve seen that a single plugin that has a problem can prevent others from being displayed in the Admin -> Plugins page.

A pain, I know, but the only way to find the problem that I know of is to remove them and add them back until the problem happens.

You should be able to leave the “blessed” - “official” Discourse plugins without a problem.

Then gradually add the others in and check the page.

(Sam Saffron) #74

no, there is no way to do so, if you want to minimise downtime during container updates use a data container.

(dtbaker) #77

Is there any way to quickly test plugins without rebuilding the whole thing? e.g. minor css/js changes in a plugin. A script or something that will just regenerate a single plugin?