StuRa Diskussion:Server/Redmine: Unterschied zwischen den Versionen
(Neuer Abschnitt →q&d) |
(→q&d) |
||
Zeile 44: | Zeile 44: | ||
PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.30 | PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.30 | ||
PassengerRuby /usr/local/bin/ruby22 | 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 - |
Version vom 23. November 2017, 04:47 Uhr
andere Anleitungen
- von Redmine
- https://www.redmine.org/projects/redmine/wiki/RedmineInstall
- https://www.redmine.org/projects/redmine/wiki/HowTos#FreeBSD
- zu FreeBSD
- http://daemon-notes.com/articles/web/redmine
- http://easyos.net/articles/bsd/freebsd/install_redmine_as_fastcgi_for_apache_in_freebsd
- https://kgibran.wordpress.com/2016/08/16/redmine-installationmigration-on-freebsd-10-using-portsapache-passenger-mysql/
rake 10 vs rake 11
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
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 -