Detailed installation instructions for different platforms are located on the OpenProject website.
You can find information on configuring OpenProject in config/CONFIGURATION.md.
-
Build the image (this will take some time)
docker-compose build -
Start and setup the database
docker-compose up -d db cp config/database.docker.yml config/database.yml docker-compose run web rake db:create db:migrate db:seed -
Start the other processes
docker-compose up
Assets should be automatically recompiled anytime you make a change, and your ruby code should also be reloaded when you change a file locally.
You can run arbitrary commands in the context of the application by using
docker-compose run. For instance:
docker-compose run web rake db:migrate
docker-compose run web rails c
...
These are generic (and condensed) installation instructions for the current dev branch without plugins, and optimised for a development environment. Refer to the OpenProject website for instructions for the stable branch, OpenProject configurations with plugins, as well as platform-specific guides.
- Git
- Database (MySQL 5.x/PostgreSQL 8.x)
- Ruby 2.1.x
- Node.js (version v0.10.x)
- Bundler (version 1.5.1 or higher required)
-
Install Ruby dependencies with Bundler:
bundle install -
Install JavaScript dependencies with npm:
npm install -
Install
foremangem:[sudo] gem install foreman
-
Copy
config/database.yml.exampletoconfig/database.yml:cd config cp database.yml.example database.ymlEdit
database.ymlaccording to your preferred database's settings. -
Copy
config/configuration.yml.exampletoconfig/configuration.yml:cp configuration.yml.example configuration.yml cd ..Edit
configuration.ymlaccording to your preferred settings for email, etc. (seeconfig/CONFIGURATION.mdfor a full list of configuration options). -
Create databases, schemas and populate with seed data:
# bundle exec rake db:create:all # bundle exec rake db:migrate # bundle exec rake db:seed -
Generate a secret token for the session store:
bundle exec rake generate_secret_token
-
Start OpenProject in development mode:
foreman start -f Procfile.devThe application will be available at
http://127.0.0.1:5000. To customize bind address and port copy the.env.sampleprovided in the root of this project as.envand configure values as required.By default a worker process will also be started. In development asynchronous execution of long-running background tasks (sending emails, copying projects, etc.) may be of limited use. To disable the worker process:
echo "concurrency: web=1,assets=1,worker=0" >> .foremanFor more information refer to Foreman documentation section on default options.
Please see here