- edit similar to: https://gist.github.com/enebo/94d39d94dabcfe9fadbb1aa5ac050528 (appropriate per which db you end up using)
- cp config/database.yml.example config/database.yml
- edit config/database.yml for db
- jruby -S bundle install --without development test rmagick
- jruby -S bundler exec rake generate_secret_token
- jruby -S bundler exec rake db:migrate RAILS_ENV="production"
- RAILS_ENV=production jruby -S rake db:fixtures:load
= Postgres Database Configuration
- Log in via psql as superuser/admin db role (psql -U {user} postgres)
- create user redmine;
- ALTER ROLE redmine CREATEDB;
- create database redmine;
- GRANT ALL PRIVILEGES ON DATABASE redmine TO redmine;
= config/database.yml
# PostgreSQL configuration example
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: <%= ENV['PASSWORD'] %>