Redmine on NetBSD

What an amazing project forge written in Ruby on Rails! Why not install it on the best OS ever?

Package installation

# pkgin install ruby31-redmine50

Database configuration

# createuser -U pgsql redmine
# createdb -U pgsql -O redmine -E UTF-8 -T template0 redmine
# psql -U pgsql postgres
psql (14.7, server 14.6)
Type "help" for help.

postgres=# ALTER ROLE redmine WITH ENCRYPTED PASSWORD 'passwd';
ALTER ROLE
# cat > /usr/pkg/share/ruby31-redmine50/config/database.yml << EOF
production:
  adapter: postgresql
  database: redmine
  host: localhost
  username: redmine
  password: "passwd"
EOF

Redmine configuration

# /usr/pkg/bin/bundle exec rake generate_secret_token
# token=$(grep "secret_key_base" config/initializers/secret_token.rb | sed -e "s,.*'\(.*\)',\1,")
# echo "production:
>   secret_key_base: ${token}" >> /usr/pkg/share/ruby31-redmine50/config/secrets.yml
rm -f /usr/pkg/share/rub31-redmine50/config/initializers/secret_token.rb
# RAILS_ENV=production /usr/pkg/bin/bundle exec rake db:migrate
# RAILS_ENV=production /usr/pkg/bin/bundle exec rake redmine:load_default_data
# cp /usrp/pkg/share/examples/rc.d/redmine50_unicorn31 /usr/pkg/etc/rc.d
# echo "redmine50_unicorn31=YES" >> /etc/rc.conf
# service redmine50_unicorn31 start 

Page top