Noir on Heroku

先月HerokuでClojureが動くようになったというニュースの翌週に公開されたCompojureベースのweb framework "Noir"

Noir is a micro-framework that allows you to rapidly develop websites in Clojure.
And it couldn't be any simpler.

サイト見て分かる通りとてもシンプルで良さげ。アプリの雛形を作ってくれるlein-noirプラグインもあり。
Herokuで遊んでみるにはうってつけで、以下の操作だけで雛形がHeroku上で動いてしまいます。
(git, herokuコマンド, leiningen導入済みの環境で)

# lein-noirプラグインインストール
lein plugin install lein-noir 1.1.0-SNAPSHOT
# noirプロジェクト作成
lein noir new testapp
cd testapp
# ローカルで動作確認するならここで lein run

# Heroku用 設定ファイル作成
echo web: lein run > Procfile
# リポジトリ作成
git init
git add .
git commit -m 'initial commit'
# heroku app作成
heroku create -s cedar
# 転送
git push heroku master
# 起動
heroku scale web=1

結果→http://simple-sky-836.herokuapp.com/
ログ

もう少しアプリっぽい物をって事でhttpstat.usのクローンを作ってみた。
http://quiet-fog-825.herokuapp.com/
ソース
これだけ簡単にアプリを公開できるとなるとclojureで色々遊んでみたくなるな。