Content
You are here:
Step-by-Step-Guide to install plugins
Added by Martin Böhm over 10 years ago
Hi,
I want to extend an existing openproject instance on debian. There I want to install the Backlogs- and the PDF-Export plugin. At https://gist.github.com/crohr/10111721 I found a description. At the the end I see “sudo service openproject restart”. Is openproject installed as service or what does this call meen?
How do I install openproject as a service.
Thanks in Advance
Replies (12)
Hi Martin,
to give you a good answer, can you please tell us how you’ve installed OpenProject (there are different ways, each resulting in a slightly different way to install plugins)
cheers,
Philipp
I’m not sure, but I think it was installed by the description here: https://www.openproject.org/projects/openproject/wiki/Debian_Stable_with_MySQL_in_production.
In this case https://gist.github.com/crohr/10111721 does not apply (openproject is not installed as a service).
In your case
Gemfile.plugin
file, as described in the plugin documentation pagebundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake db:seed
RAILS_ENV=production bundle exec rake assets:precompile
I hope I covered everything :)
cheers,
Philipp
Where do I create the Gemfile.plugin? Do I create it in the openproject-folder besides Gemfile and Gemfile.lock?
Moreover there is an strong outline that the openproject-plugins is required for each plugin. But the plugins list only mentions dependencies to the Backlogs-Plugin, the PDF-Export-Plugin and the Emoji-Plugin. Are there more dependencies? Where do I find a complete list of needed dependencies?
Martin Böhm wrote:
exactly
openproject-plugins
is required by many (but not all) plugins. And your’re right, the backlogs plugins needsopenproject-plugins
as a dependency (I added it to the list just now).The emoji-plugin is not needed by any other plugin (I know of).
In general, you can (= should) find complete installation instructions for a plugin at the plugin’s readme (the “source” link in the plugin table).
Thanks for your quick reply.
I run bundle install under the recommended openproject-user. But I get the following error:
What does this mean? What is missing or how can I work around?
Thanks for your reply.
The error origins from missing ruby-dev. I googled around and found the following solution:
sudo apt-get install ruby-dev
Then I called “bundle install” again.
I’ve ran all your commands successfully. Thereafter I started “service apache2 start”. But at the administration web interface the plugins are missing.
Do I have to restart the openproject server? How do I restart the openproject application or is it started up by apache2?
The passenger process might still be running (passenger is a webserver, that can run openproject and serves it to apache). You can restart passenger through creating/touching a file called
restart.txt
. You can find (or create) that file at<path to your openproject installation>/tmp/restart.txt
.Passenger is restarted on the next web-request (this implies that the next request might take much longer).
Have a look at the passenger documentation for details.
This way you can restart OpenProject without restarting apache (and with it probably your whole site) every time.
Done! But plugins are not shown.
At my apache2 error.log I found this lines:
What are the implications? What do I need to do?
I had a private conversation with Martin to find the problem. It turned out, that the installation guide recommended to use the
Gemfile.plugin
file. But it should have beenGemfile.plugins
(note the missing ‘s’).Fortunately, Martin found the flaw and fixed the documentation. Thanks!
hi, we have same problem installing omniauth plugin. We have openproject installed via bitnami stack on google compute engine.
We can not install the plugin. Do you have any solution? It is fresh install of open project and we like to include omniauth in it.