RedmineをWindows11にインストール
前回はの続き。
前回はVisualSVN Serverのインストールを実施。今回はRedmine Serverのインストール。
インストール先はWindows11 pro 23H2のデスクトップPC。
Windows11 pro 23H2
Ruby 3.2.2-1
MySQL 5.7.44.0
Redmine 5.1.1
Rubyのインストール
Ruby+Devkit 3.2.2-1 (x64)をダウンロード。
https://rubyinstaller.org/downloads/
ダウンロードしたrubyinstaller-devkit-3.2.2-1-x64.exeを実行。






順番に 1 2 3 Enter
Microsoft Visual C++ 再頒布可能パッケージをインストール
サポートされている最新の x64 バージョンの固定リンクからMicrosoft Visual C++ 再頒布可能パッケージをインストール。
https://aka.ms/vs/17/release/vc_redist.x64.exe

MySQLのインストール
Windows (x86, 32-bit), MSI Installer(mysql-installer-web-community-5.7.44.0.msi)をダウンロード。
https://dev.mysql.com/downloads/windows/installer/5.7.html
ダウンロードしたmysql-installer-web-community-5.7.44.0.msiを実行。


ダウンロードが複数回失敗したが、リトライして



















データベース作成

CREATE DATABASE redmine CHARACTER SET utf8mb4;

GRANT ALL PRIVILEGES ON redmine.* TO 'test1’@’localhost’;
Redmineのダウンロード
https://www.redmine.org/projects/redmine/wiki/Download

ダウンロードしたredmine-5.1.1.zipをC:\app\redmineへ展開
Redmineのデータベース設定ファイル config/database.ymlの設定
C:\app\redmine\config\database.ymlの値を編集

Bundlerのインストール
コマンドプロンプトを管理者として実行。
cd C:\app\redmine
gem install bundler
thinの設定
gem “thin"
gem “thin_service"
pgの設定
gem “thin"
gem “thin_service"
開発キットのインストール
ridk enable
ridk install 1 2 3
ridk exec pacman -S mingw-w64-x86_64-dlfcn –-noconfirm
mysql2のgemをインストール
bundle config –local build.mysql2 –with-mysql-dir="C:\app\redmine\mysql-connector-c++-8.0.33-win32″
bundle installの実行
bundle install –without development test
秘密鍵の生成
set RUBY_DLL_PATH=C:\Program Files\MySQL\MySQL Server 5.7\bin
bundle exec rake generate_secret_token
データベースのマイグレーション
set RAILS_ENV=production
bundle exec rake db:migrate
Redmineの起動
bundle exec thin start -e production -p 3000 -a 0.0.0.0 “C:\app\redmine"
Redmineの確認
http://localhost:3000




プロジェクトの新規作成


リポジトリ設定


リポジトリ確認

RedmineのプロジェクトからSubversionのリポジトリを確認できました。
ただし、Webでリポジトリを確認したいだけの目的のため、今回はRedmineは使用せずに、VisualSVNのみを使用します。
以上です。
ディスカッション
コメント一覧
まだ、コメントがありません