OpenProject, the web-based project management system for location-independent team collaboration can easly be deployed to Heroku in about 15 minutes.
How to
Prepare OpenProject for Heroku
- Clone the OpenProject GitHub repo:
git clone https://github.com/opf/openproject.git
- Inside the OpenProjects folder, checkout your own
master
branch fromstable
:git checkout stable git checkout -b master stable
- Add Herokus Rails 12factor Gem to the
Gemfile
and remove the SQLite3 Gem:gem 'rails_12factor', group: :production # Add gem "sqlite3" # Remove
- Install Ruby dependencies with Bundler:
rm Gemfile.lock bundle install
- Install JavaScript dependencies with npm:
npm install
- Comment out (or delete) the following line from the
gitignore
file:/vendor/assets/components
- Change the
web:
process type in yourProcfile
to:web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
Deploy
- Commit all your changes:
git add . git commit -m 'Prepare for Heroku'
- Create your new Heroku app with a Postgres database:
heroku create your-apps-name --addons heroku-postgresql
- Push your OpenProject instance to Heroku:
git push heroku master
- Set a new Heroku environment variable
SECRET_TOKEN
:heroku config:set SECRET_TOKEN=your_super_secret_token
- 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.