StuRa Diskussion:Server/Redmine: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
(Neuer Abschnitt →‎rake 10 vs rake 11)
K (JohannBoxberger verschob die Seite Diskussion:Server/Redmine nach StuRa Diskussion:Server/Redmine)
 
(4 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 8: Zeile 8:
* http://daemon-notes.com/articles/web/redmine
* http://daemon-notes.com/articles/web/redmine
* http://easyos.net/articles/bsd/freebsd/install_redmine_as_fastcgi_for_apache_in_freebsd
* 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 10 vs rake 11 ==
Zeile 23: Zeile 24:
(See full trace by running task with --trace)
(See full trace by running task with --trace)
</pre>
</pre>
: <code>bundle exec gem uninstall -v 10.5.0</code>
: <code>bundle exec gem uninstall rake -v 10.5.0</code>
: <code>bundle exec gem install -v 11.1.2</code>
: <code>bundle exec gem install rake -v 11.1.2</code>
 
== 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 -

Aktuelle Version vom 23. Februar 2020, 18:57 Uhr

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 -