Skip to content

Instantly share code, notes, and snippets.

@crohr
Last active June 8, 2018 07:03
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crohr/10111721 to your computer and use it in GitHub Desktop.
Save crohr/10111721 to your computer and use it in GitHub Desktop.
Install openproject plugins using the debian package

Let's say you wanted to install this plugin: https://github.com/finnlabs/openproject-meeting. Here is how you would do it with the openproject version packaged at https://pkgr.io/apps/tessi/openproject:

cat >> /opt/openproject/Gemfile.plugins <<EOF
gem "openproject-plugins", :git => "https://github.com/opf/openproject-plugins.git", :branch => "stable"
gem "openproject-meeting", :git => "https://github.com/finnlabs/openproject-meeting.git", :branch => "stable"
EOF
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.

@tessi
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.

@crohr
Copy link
Author

crohr commented Apr 8, 2014

Also added sudo service openproject restart to the mix.

@markhaehnel
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?

@crohr
Copy link
Author

crohr commented Jul 24, 2014

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

@kgalli
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.

@eudoxos
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