IMEOS
  1. Home
  2. Work
  3. Contact
  4. Blog

Im Obstgarten 7
8596 Scherzingen
Switzerland

+41 79 786 10 11
(CET/CEST, Mo-Fr, 09:00 - 18:00)
io@imeos.com

IMEOS on GitHub
RubyRailsOpenProject

Deploy OpenProject to Heroku – the easy way

Mar 18, 2015
6 minutes read
  • How to
  • Enjoy

OpenProject, the web-based project management system for location-independent team collaboration can easly be deployed to Heroku in about 15 minutes.

openproject + heroku
openproject + heroku

How to

Prepare OpenProject for Heroku

  1. Clone the OpenProject GitHub repo:
git clone https://github.com/opf/openproject.git
  1. Inside the OpenProjects folder, checkout your own master branch from stable:
git checkout stable
git checkout -b master stable
  1. Add Herokus Rails 12factor Gem to the Gemfile and remove the SQLite3 Gem:
gem 'rails_12factor', group: :production    # Add
gem "sqlite3"                               # Remove
  1. Install Ruby dependencies with Bundler:
rm Gemfile.lock
bundle install
  1. Install JavaScript dependencies with npm:
npm install
  1. Comment out (or delete) the following line from the gitignore file:
/vendor/assets/components
  1. Change the web: process type in your Procfile to:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb

Deploy

  1. Commit all your changes:
git add .
git commit -m 'Prepare for Heroku'
  1. Create your new Heroku app with a Postgres database:
heroku create your-apps-name --addons heroku-postgresql
  1. Push your OpenProject instance to Heroku:
git push heroku master
  1. Set a new Heroku environment variable SECRET_TOKEN:
heroku config:set SECRET_TOKEN=your_super_secret_token
  1. Migrate the database and populate it with seed data:
heroku run rake db:migrate
heroku run rake db:seed

Enjoy

Now you should have your instance of OpenProject deployed on Heroku and can start to configure it to your own needs.

Related posts

  • RubyRailsPaginate stateful tabs in Ruby on Rails with Pagy
    Jun 19, 2018
    8 minutes read
  • RubyRailsOrder select tag entries alphabetically and group by first letter in Rails
    Sep 14, 2015
    2 minutes read
  • RubyRailsLivereload Ruby on Rails applications
    Mar 16, 2014
    3 minutes read

  • Privacy
  • Imprint
IMEOS