StuRa Diskussion:Server/Redmine

Aus Wiki StuRa HTW Dresden
(Weitergeleitet von Diskussion:Server/Redmine)
Zur Navigation springen Zur Suche springen

andere Anleitungen[Bearbeiten]

von Redmine
zu FreeBSD

rake 10 vs rake 11[Bearbeiten]

rake aborted!
Gem::LoadError: You have already activated rake 10.5.0, but your Gemfile requires rake 11.1.2. Prepending `bundle exec` to your command may solve this.
/usr/local/www/redmine/config/boot.rb:6:in `<top (required)>'
/usr/local/www/redmine/config/application.rb:1:in `<top (required)>'
/usr/local/www/redmine/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
/usr/local/www/redmine/config/boot.rb:6:in `<top (required)>'
/usr/local/www/redmine/config/application.rb:1:in `<top (required)>'
/usr/local/www/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
bundle exec gem uninstall rake -v 10.5.0
bundle exec gem install rake -v 11.1.2

q&d[Bearbeiten]

pkg update; pkg upgrade --yes;

pkg install --yes zsh;

pkg install --yes redmine; sysrc redmine_enable="YES"; pkg install --yes mysql56-server; sysrc mysql_enable="YES"; pkg install -y rubygem-passenger; sysrc apache24_enable="YES";

service mysql-server start; mysql_install_db --basedir /usr/local; mysql_secure_installation; mysql -u root -p

service apache24 start;

pkg install -y ap24-mod_fastcgi; pkg install -y rubygem-fcgi; service apache24 restart;

  LoadModule passenger_module /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.30/buildout/apache2/mod_passenger.so
  PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.30
  PassengerRuby /usr/local/bin/ruby22

ee /usr/local/www/redmine/config/database.yml

cd /usr/local/www/redmine; bundle install; pkg info | grep ImageMagick; bundle exec rake generate_secret_token; RAILS_ENV=production bundle exec rake db:migrate; RAILS_ENV=production REDMINE_LANG=de bundle exec rake redmine:load_default_data; mkdir -p tmp tmp/pdf public/plugin_assets; chown -R www:www files log tmp public/plugin_assets; chmod -R 755 files log tmp public/plugin_assets; cd -