Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Owner Author

crohr commented Apr 8, 2014

Also added sudo service openproject restart to the mix.

@markhaehnel

This comment has been minimized.

Copy link

markhaehnel commented Jun 19, 2014

Can you add a documentation how to remove a plugin?

@ghost

This comment has been minimized.

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

This comment has been minimized.

Copy link
Owner Author

crohr commented Jul 24, 2014

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

@kgalli

This comment has been minimized.

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

This comment has been minimized.

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
You can’t perform that action at this time.