Skip to content

Instantly share code, notes, and snippets.

Last active June 8, 2018 07:03
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install openproject plugins using the debian package

Let's say you wanted to install this plugin: Here is how you would do it with the openproject version packaged at

cat >> /opt/openproject/Gemfile.plugins <<EOF
gem "openproject-plugins", :git => "", :branch => "stable"
gem "openproject-meeting", :git => "", :branch => "stable"
sudo apt-get install -y git
sudo openproject run bundle install --no-deployment
sudo openproject run rake db:migrate
sudo openproject run rake assets:precompile
sudo service openproject restart

The plugins should now appear in the openproject UI.

Note that you will probably need to redo a sudo openproject run bundle install --no-deployment on each upgrade of the openproject package.

Copy link

tessi commented Apr 8, 2014

Thanks @crohr for caring :)

sudo openproject run rake assets:precompile

is missing and there might be more steps to do depending on the plugin (but they should be listedin the plugin's readme). Apart from that your steps run without problems on my machine 👍

If you have edited the openproject setup, please take extra care when updating the openproject core. Currently, it is not possible for me to test a new OpenProject build with all combinations of all plugins.

Copy link

crohr commented Apr 8, 2014

Also added sudo service openproject restart to the mix.

Copy link

Can you add a documentation how to remove a plugin?

Copy link

ghost commented Jul 18, 2014

i have this error: fatal: Not a git repository (or any of the parent directories): .git
the .git's directory are in the gems directory... how can i fix it?

Copy link

crohr commented Jul 24, 2014

@EZTEQ remove the line from Gemfile.plugins, then run the same commands.

Copy link

kgalli commented Sep 29, 2014

@EZTEQ you should probably also run the down migrations of the plugins you want to remove. Unfortunately that has to be done manually.

rake db:migrate:down VERSION=migration_version_number_here

So if you have a migration called: 20140208031122_create_docouments.rb then the version is 20140208031122.

Copy link

eudoxos commented Jan 7, 2015

I am having the same pb as @ciuino. What's the solution to that one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment