Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:redmine [2015/11/02 15:12]
vondra created
linux:redmine [2015/11/04 10:01] (current)
vondra [Installation]
Line 2: Line 2:
 A free and open source, web-based project management and issue tracking tool. It allows users to manage multiple projects and associated subprojects. It features per project wikis and forums, time tracking, and flexible role based access control. It includes a calendar and Gantt charts to aid visual representation of projects and their deadlines. Redmine integrates with various version control systems and includes a repository browser and diff viewer. A free and open source, web-based project management and issue tracking tool. It allows users to manage multiple projects and associated subprojects. It features per project wikis and forums, time tracking, and flexible role based access control. It includes a calendar and Gantt charts to aid visual representation of projects and their deadlines. Redmine integrates with various version control systems and includes a repository browser and diff viewer.
 ===== Installation ===== ===== Installation =====
-na xen-jsemprase byla spustena testovaci instance redmine 3.0 do ktere byl naimportovan dump DB z ostreho serveru certusu 
- 
-postup: 
   - install required packages:<​code bash> apt-get install redmine-mysql</​code>​   - install required packages:<​code bash> apt-get install redmine-mysql</​code>​
   - do not setup database connection during setup   - do not setup database connection during setup
 +  - create new database<​code sql>
 +create database redmine;
 +grant all privileges on redmine.* to redmine@localhost identified by '​redmine';​
 +</​code>​
 +  - (optionally) put DB dump from older version into newly created DB
   - setup database manually in /​etc/​redmine/​database.yaml:<​code yaml>   - setup database manually in /​etc/​redmine/​database.yaml:<​code yaml>
 production: production:
Line 17: Line 19:
   encoding: utf8</​code>​   encoding: utf8</​code>​
   - create database structure:<​code bash>   - create database structure:<​code bash>
 +cd /​usr/​share/​redmine/​
 bundle exec rake db:migrate RAILS_ENV=production</​code>​ bundle exec rake db:migrate RAILS_ENV=production</​code>​
   - create a symlink to working directory:<​code bash>   - create a symlink to working directory:<​code bash>
 ln -s /​usr/​share/​redmine /​var/​lib/​redmine/​default/​passenger</​code>​ ln -s /​usr/​share/​redmine /​var/​lib/​redmine/​default/​passenger</​code>​
 +  - install passenger module to apache:<​code bash>
 +apt-get install libapache2-mod-passenger
 +</​code>​
 +  - setup default user for passenger in /​etc/​apache2/​mods-available/​passenger.conf:<​code xml>
 +<​IfModule mod_passenger.c>​
 +  PassengerRoot /​usr/​lib/​ruby/​vendor_ruby/​phusion_passenger/​locations.ini
 +  PassengerDefaultRuby /​usr/​bin/​ruby
 +  PassengerDefaultUser www-data
 +</​IfModule>​
 +</​code>​
   - create apache configuration /​etc/​apache2/​sites-available/​redmine.conf:<​code xml>   - create apache configuration /​etc/​apache2/​sites-available/​redmine.conf:<​code xml>
 Listen 3000 Listen 3000
Line 36: Line 49:
         </​Directory>​         </​Directory>​
 </​VirtualHost></​code>​ </​VirtualHost></​code>​
-restart ​apache ​a na portu 3000 bezi funkcni instance ​redmine +  - reload ​apache<​code>​ 
-pote nahrat dump predchozi verze do databaze a sledovat funkcnost+apache2ctl graceful</​code>​ 
 +  - access the redmine ​on port 3000 
 +===== Migration ===== 
 +[[https://​www.redmine.org/​projects/​redmine/​wiki/​HowTo_Migrate_Redmine_to_a_new_server_to_a_new_Redmine_version]]
  
 +  - setup new server following the previous steps
 +  - copy files from old server to new (files are in /​var/​lib/​redmine/​default/​files) and don't forget to grant permissions for www-data user
  
 
linux/redmine.1446473552.txt.gz · Last modified: 2015/11/02 15:12 by vondra