Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
Následující verze Obě strany příští revize
sw:redmine:installation-on-debian-jessie [14.09.2015 19:25]
vm
sw:redmine:installation-on-debian-jessie [14.09.2015 19:42]
vm
Řádek 44: Řádek 44:
   tar zxvf redmine-3.1.0.tar.gz   tar zxvf redmine-3.1.0.tar.gz
   mv redmine-3.1.0 wwwroot   mv redmine-3.1.0 wwwroot
-   +  rm redmine-3.1.0.tar.gz 
 ==== Configure ==== ==== Configure ====
   cd /​srv/​redmine/​wwwroot/​config/​   cd /​srv/​redmine/​wwwroot/​config/​
Řádek 54: Řádek 55:
     database: redmine     database: redmine
     host: localhost     host: localhost
-    username: ​root+    username: ​redmine
     password: "​Your-Secret-Password"​     password: "​Your-Secret-Password"​
     encoding: utf8     encoding: utf8
  
 ==== Install ==== ==== Install ====
 +Install dependencies:​
   apt-get install make gcc libxml2-dev libxslt-dev libmysql++-dev libmysqlclient-dev libmagickcore-dev libmagickwand-dev libpq-dev imagemagick ruby-dev   apt-get install make gcc libxml2-dev libxslt-dev libmysql++-dev libmysqlclient-dev libmagickcore-dev libmagickwand-dev libpq-dev imagemagick ruby-dev
  
   cd /​srv/​redmine/​wwwroot   cd /​srv/​redmine/​wwwroot
-  bash -lc rvm 2.1.5 do gem install bundler +  bash -lc 'rvm 2.1.5 do gem install bundler' 
-  bash -lc cd ${easyredmine::​install_dir}; RAILS_ENV=production rvm ${easyredmine::​ruby_version} ​do bundle install --without development test +  bash -lc 'cd /​srv/​redmine/​wwwroot; RAILS_ENV=production rvm 2.1.5 do bundle install --without development test'
-  bash -lc cd ${easyredmine::​install_dir};​ RAILS_ENV=production rvm ${easyredmine::​ruby_version} do bundle exec rake generate_secret_token +
-  bash -lc RAILS_ENV=production cd ${easyredmine::​install_dir};​ rvm ${easyredmine::​ruby_version} do bundle exec rake db:​migrate +
-  bash -lc cd ${easyredmine::​install_dir};​ rvm ${easyredmine::​ruby_version} do bundle exec rake redmine:​load_default_data RAILS_ENV=production REDMINE_LANG=en+
  
 +Now make sure that ''​redmine''​ user can access Redmine files.
   chown -R redmine:​redmine /​srv/​redmine/​   chown -R redmine:​redmine /​srv/​redmine/​
 +  ​
 +And following commands should be executed as ''​redmine''​ user.
 +  su - redmine # login as redmine user
 +  bash -lc 'cd /​srv/​redmine/​wwwroot;​ RAILS_ENV=production rvm 2.1.5 do bundle exec rake generate_secret_token'​
 +  bash -lc 'cd /​srv/​redmine/​wwwroot;​ RAILS_ENV=production rvm 2.1.5 do bundle exec rake db:​migrate'​
 +  bash -lc 'cd /​srv/​redmine/​wwwroot;​ RAILS_ENV=production rvm 2.1.5 do bundle exec rake redmine:​load_default_data REDMINE_LANG=en'​
 +  exit # logout
  
-Configure ​log rotation:+==== Log rotation ==== 
 +To enable ​log rotation ​create file ''/​etc/​logrotate.d/​redmine''​ using this:
   echo <<EOF > /​etc/​logrotate.d/​redmine   echo <<EOF > /​etc/​logrotate.d/​redmine
   /​srv/​redmine/​wwwroot/​log/​*.log   /​srv/​redmine/​wwwroot/​log/​*.log
Řádek 80: Řádek 88:
       copytruncate       copytruncate
   }   }
 +  EOF
  
 ===== 5. Unicorn ===== ===== 5. Unicorn =====
sw/redmine/installation-on-debian-jessie.txt · Poslední úprava: 28.10.2015 18:06 autor: vm