howto:hosting:redmine
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
howto:hosting:redmine [2020/08/03 15:43] – gandalf | howto:hosting:redmine [2024/09/26 18:08] (aktuální) – gandalf | ||
---|---|---|---|
Řádek 19: | Řádek 19: | ||
* Prepneme se do root adresare redmine a spustime instalaci. Pokud pouzivame pluginy, je dobre vsechny zavislosti na dalsim gems vyjmenovat do souboru **Gemfile** | * Prepneme se do root adresare redmine a spustime instalaci. Pokud pouzivame pluginy, je dobre vsechny zavislosti na dalsim gems vyjmenovat do souboru **Gemfile** | ||
+ | |||
+ | ==== Upgrade verze 3.x ==== | ||
+ | |||
<code bash> | <code bash> | ||
Řádek 39: | Řádek 42: | ||
* A na zaver vycistime cache | * A na zaver vycistime cache | ||
<code bash> | <code bash> | ||
- | bundle exec rake tmp: | + | <del>bundle exec rake tmp: |
+ | bundle exec rake tmp: | ||
</ | </ | ||
Řádek 105: | Řádek 109: | ||
* po upgradu ruby je potreba znova nainstalovat bundler **gem install bundler** pripadne doinstalovat dalsi zavilosti ktere se zjisti pri naslednem zusteni bundle install | * po upgradu ruby je potreba znova nainstalovat bundler **gem install bundler** pripadne doinstalovat dalsi zavilosti ktere se zjisti pri naslednem zusteni bundle install | ||
- | |||
- | |||
==== redmine_agile ==== | ==== redmine_agile ==== | ||
Řádek 122: | Řádek 124: | ||
+ | ==== Upgrade na Ruby 2.5 / Debian 10 ==== | ||
+ | - '' | ||
+ | - '' | ||
+ | |||
+ | Pokud to vypise nejakou chybu o neexistence verze v repozitari, tak provedte update prislusneho balicku, ktery to pise, napr.: | ||
+ | - '' | ||
+ | |||
+ | Nakonec provest stadanrdni postup pri upgradu redmine viz. vyse. | ||
+ | |||
+ | Pokud nestartuje po upgradu apache - stalo se mi pod LXC | ||
+ | - '' | ||
+ | - '' | ||
+ | |||
+ | |||
+ | ==== Ruby 2.5; Postgres 10+ ==== | ||
+ | |||
+ | Pri migraci muze hlasit potize s pravama - nektere tabulky v databazi maji jineho vlastnika nez uzivatele, ktery se pouzova pro pripojeni z redmine. Resenim je opravit vlastnika: | ||
+ | < | ||
+ | for tbl in `psql -qAt -c " | ||
+ | |||
+ | for tbl in `psql -qAt -c " | ||
+ | |||
+ | for tbl in `psql -qAt -c " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Gitolite v2 => Gitolite v3 ==== | ||
+ | |||
+ | * backing up all the repositories and hooks | ||
+ | * dpkg --purge gitolite | ||
+ | * rm -rf / | ||
+ | * install gitolite3 (ev. dpkg-reconfigure gitolite3) | ||
+ | * putting the repositories and hooks back in place | ||
+ | * running: | ||
+ | < | ||
+ | gitolite compile | ||
+ | gitolite setup --hooks-only | ||
+ | gitolite trigger POST_COMPILE | ||
+ | </ | ||
+ | |||
+ | * uncoment in .gitolite.rc | ||
+ | < | ||
+ | # look for " | ||
+ | GIT_CONFIG_KEYS | ||
+ | |||
+ | LOCAL_CODE | ||
+ | </ | ||
+ | |||
+ | * sudo to redmine user and run: | ||
+ | < | ||
+ | bundle exec rake redmine_git_hosting: | ||
+ | bundle exec rake redmine_git_hosting: | ||
+ | bundle exec rake redmine_git_hosting: | ||
+ | bundle exec rake redmine_git_hosting: | ||
+ | bundle exec rake redmine_git_hosting: | ||
+ | </ | ||
+ | |||
+ | === **POZOR** === | ||
+ | |||
+ | Pokud najdeme v logu '' | ||
+ | < | ||
+ | 2022-07-26 18:28:25 +0200 [ERROR] Access denied for Gitolite Admin SSH Keys | ||
+ | 2022-07-26 18:28:25 +0200 [ERROR] unsupported URL protocol | ||
+ | </ | ||
+ | a zaroven v konfigurace git hostingu v redmine na karte configtest sviti v kolonce **Rugged compiled features** <color # | ||
+ | |||
+ | < | ||
+ | # gem list | grep rugged | ||
+ | rugged (0.99.0) | ||
+ | # gem uninstall rugged | ||
+ | # apt-get install libssh2-1-dev | ||
+ | # gem install rugged -v 0.99.0 | ||
+ | </ | ||
+ | |||
+ | ==== Migrace Trac do Redmine ==== | ||
+ | |||
+ | < | ||
+ | # rake redmine: | ||
+ | |||
+ | WARNING: a new project will be added to Redmine during this process. | ||
+ | Are you sure you want to continue ? [y/N] y | ||
+ | |||
+ | Trac directory []: / | ||
+ | Trac database adapter (sqlite3, mysql2, postgresql) [sqlite3]: | ||
+ | Trac database encoding [UTF-8]: | ||
+ | Target project identifier []: prometheus | ||
+ | |||
+ | This project already exists in your Redmine database. | ||
+ | Are you sure you want to append data to this project ? [Y/n] y | ||
+ | |||
+ | Trac database version is: 26 | ||
+ | Migrating components. | ||
+ | Migrating milestones........... | ||
+ | Migrating custom fields | ||
+ | Migrating tickets.................................... | ||
+ | Migrating wiki...................................................... | ||
+ | |||
+ | Components: | ||
+ | Milestones: | ||
+ | Tickets: | ||
+ | Ticket files: | ||
+ | Custom values: | ||
+ | Wiki edits: | ||
+ | Wiki files: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Upgrade na Debian 12 ===== | ||
+ | |||
+ | * vychozi verze pro upgrade je Redmine 4.2 na Debian 11 | ||
+ | * Pred upgradem na Debian 12 je potreba nejprve upgradnout Redmine alespon na 5.0 - viz. [[https:// | ||
+ | * V pripade hlasky o identitiy_url | ||
+ | |||
+ | < | ||
+ | PG:: | ||
+ | DETAIL: | ||
+ | HINT: Use DROP ... CASCADE to drop the dependent objects too. | ||
+ | </ | ||
+ | |||
+ | je potreba pres phppgadmin odstranit kaskdovite prislusny sloupecek a nasledne znova vytvorit - jinak neprojde db:migrate | ||
+ | |||
+ | * Do konfiguraku apache pridat: | ||
+ | < | ||
+ | # pridano 2024-07-23 start | ||
+ | PassengerFriendlyErrorPages on | ||
+ | PassengerAppEnv production | ||
+ | # pridano 2024-07-23 konec | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Vice instanci Redmine na jednom serveru ==== | ||
+ | |||
+ | Je potreba oddelit virtualhostama a do kazdeho pridat nasledujici nastavni | ||
+ | < | ||
+ | # # CHANGE PassengerAppGroupName FOR OTHER INSTANCES | ||
+ | PassengerAppGroupName redminetst_default | ||
+ | PassengerDefaultUser www-data | ||
+ | </ | ||
howto/hosting/redmine.1596462224.txt.gz · Poslední úprava: 2020/08/03 15:43 autor: gandalf