Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revize Předchozí verze Následující verze | Předchozí verze | ||
sw:redmine:installation-on-debian-jessie [15.09.2015 16:08] vm |
sw:redmine:installation-on-debian-jessie [28.10.2015 18:06] (aktuální) vm |
||
---|---|---|---|
Řádek 5: | Řádek 5: | ||
Debian 8 is the first version of Debian that is using ''systemd'', all other steps are the same also for older versions of Debian. | Debian 8 is the first version of Debian that is using ''systemd'', all other steps are the same also for older versions of Debian. | ||
- | ===== 1. System settings ===== | + | ===== System settings ===== |
Add user account that will be used for redmine application. | Add user account that will be used for redmine application. | ||
useradd -m -s /bin/bash redmine | useradd -m -s /bin/bash redmine | ||
Řádek 11: | Řádek 11: | ||
- | ===== 2. RVM ===== | + | ===== RVM ===== |
Install required packages | Install required packages | ||
Řádek 26: | Řádek 26: | ||
bash -lc 'rvm use --default 2.1.5' | bash -lc 'rvm use --default 2.1.5' | ||
- | ===== 3. Database ===== | + | ===== Database ===== |
As a database will be used MySQL server. | As a database will be used MySQL server. | ||
apt-get install mysql-server | apt-get install mysql-server | ||
Řádek 37: | Řádek 37: | ||
- | ===== 4. Redmine ===== | + | ===== Redmine ===== |
==== Download ==== | ==== Download ==== | ||
mkdir /srv/redmine/ | mkdir /srv/redmine/ | ||
+ | mkdir /srv/redmine/run/ | ||
cd /srv/redmine/ | cd /srv/redmine/ | ||
wget http://www.redmine.org/releases/redmine-3.1.0.tar.gz | wget http://www.redmine.org/releases/redmine-3.1.0.tar.gz | ||
Řádek 90: | Řádek 91: | ||
EOF | EOF | ||
- | ===== 5. Unicorn ===== | + | ===== Unicorn ===== |
+ | Install unicorn server. | ||
+ | bash -lc 'rvm 2.1.5 do gem install unicorn' | ||
mkdir /etc/unicorn | mkdir /etc/unicorn | ||
Řádek 113: | Řádek 116: | ||
and unicorn config file ''/etc/unicorn/redmine.rb'': | and unicorn config file ''/etc/unicorn/redmine.rb'': | ||
- | cat <<EOF > /etc/unicorn/redmine.rb | + | cat <<'EOF' > /etc/unicorn/redmine.rb |
worker_processes 4 | worker_processes 4 | ||
Řádek 142: | Řádek 145: | ||
defined?(ActiveRecord::Base) and | defined?(ActiveRecord::Base) and | ||
ActiveRecord::Base.establish_connection | ActiveRecord::Base.establish_connection | ||
- | End | + | end |
EOF | EOF | ||
- | ===== 6. Nginx ===== | + | ===== Nginx ===== |
Install server: | Install server: | ||
apt-get install nginx | apt-get install nginx | ||
Řádek 156: | Řádek 159: | ||
EOF | EOF | ||
- | Redmine site configuration ''/etc/nginx/sites-available/redmine'': | + | Redmine site configuration ''/etc/nginx/sites-available/redmine'' using hostname ''my-redmine.company.com'' |
- | cat <<EOF > /etc/nginx/sites-available/redmine | + | cat <<'EOF' > /etc/nginx/sites-available/redmine |
server { | server { | ||
listen *:80; | listen *:80; | ||
- | server_name redmine; | + | server_name my-redmine.company.com; |
| | ||
index index.html index.htm; | index index.html index.htm; | ||
Řádek 178: | Řádek 181: | ||
} | } | ||
} | } | ||
+ | EOF | ||
and activate the site: | and activate the site: | ||
- | ln -s /etc/nginx/sites-enables/redmine /etc/nginx/sites-available/redmine | + | ln -s /etc/nginx/sites-available/redmine /etc/nginx/sites-enabled/ |
+ | |||
+ | ===== Start services ===== | ||
+ | systemctl start unicorn.service | ||
+ | |||
+ | systemctl reload nginx.service | ||
+ | |||
+ | ===== Use it ===== | ||
+ | |||
+ | To access newly installed instance open web browser and access it using hostnamed configured in nginx. | ||
+ | |||
+ | During installation was created default administrator with these credentials: | ||
+ | |||
+ | ^ Login | admin | | ||
+ | ^ Password | admin | |
sw/redmine/installation-on-debian-jessie.1442326133.txt.gz · Poslední úprava: 15.09.2015 16:08 autor: vm