Windows に Middleman をインストールする手順メモ

WindowsMiddleman をインストールして動かせたので手順をメモしておく。 といっても難しいことはやってない。 スンナリ動いて拍子抜けしてくらいだ。

RubyInstaller と DevKit をダウンロード。

http://rubyinstaller.org/downloads

Ruby は 2.2.3 をダウンロードした。

Ruby をインストール

インストーラーを実行して、Ruby を C:\Ruby22 にインストール。

DevKit をインストール

DevKit は C:\Ruby22\devkit に解凍した。

cd C:\Ruby22\devkit
ruby dk.rb init

を実行すると Ruby のインストールパスが書かれた config.yml が作成される。

パスが間違っていないか一応確認。

# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:/Ruby22

間違っていないので

ruby dk.rb install

を実行して DevKit インストール完了。

Middleman をインストール

コマンド一発。

gem install middleman

Middleman の動作確認

Middleman がちゃんと動くか、念のため動作確認しておく。

middleman init sample
cd sample
middleman build
middleman server

あたりが動いたんで問題なさそう。