Content
Installation of OpenProject 4.0
We are still working on the Installation instructions. With the release of OpenProject 4.0 we are striving to ease installation by providing packages for the various distributions. Those are still in the making but you can expect them very soon.
We would be happy to hear of any guides you can contribute.
Manual Installation
For now, there is one detailed installation guide for Debian 7 which can be taken as a guideline for other distributions as well:
Upgrade From OpenProject 3.0
There is currently one detailed upgrade guide for Debian 7 which can be taken as a guideline for other distributions as well:
Generic Installation Instructions
In case none of the above guides fit your system, we have some general installation instructions. They give you an idea on what to do to install OpenProject without providing the platform-dependent details.
- Consider creating a separate OS-user for OpenProject (so that OpenProject does not run as root/admin)
- Prepare a database (MySQL or PostgreSQL) including a database-user and access rights to an OpenProject-database
- Install Ruby (version 2.1.x) (for example with RVM or rbenv)
- Install the Bundler gem
- Install Node.js (for example with nodeenv)
- Install Bower
- Clone the OpenProject repository from https://github.com/opf/openproject/
- Within the OpenProject directory do:
bundle install
bower install
- Configure OpenProject
- Create the
config/database.yml
file (a template can be found atconfig/database.yml.example
) - Create the
config/configuration.yml
file (a template can be found atconfig/configuration.yml.example
) - Validate both files (YAML-files are very sensitive, when it comes to whitespace), for example with: http://www.yamllint.com/
- Create the
- Run the following commands within the OpenProject directory:
-
bundle exec rake db:create:all
to create the database -
bundle exec rake generate_secret_token
to generate the cookie-encryption token -
RAILS_ENV="production" bundle exec rake db:migrate
to populate the database with the tables OpenProject needs -
RAILS_ENV="production" bundle exec rake db:seed
to generate the default admin-user -
RAILS_ENV="production" bundle exec rake assets:precompile
To pack the assets (JavaScript, CSS) so that they can be served in production
-
- Serve OpenProject (just like any other Rails application), for example with Passenger
- Start the woker-process (which sends OpenProject mails, copies projects, etc.), for example with
RAILS_ENV=production bundle exec script/delayed_job start