テストレポートの更新中
コンパイルをする際にはテストレポートは消しておきたいとふと思った。
-apche2
-htdocs
-testreport
こんな感じでテストレポートディレクトリを作ってあるが、テストの開始前にはtestreport以下は削除しておく。
それからindexページをコピーしておけば、
・現在ビルド中であること
・前回のビルドが失敗(or中断)していること
がビルド失敗メールの届かない開発陣にもわかるはずだ。
indexファイルは上記のメッセージと、ファイルの更新時間を表示させる。そのためにはSSIを使っておこう。
1.apacheの設定
httd.confを修正する
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
以下のように修正
Options Indexes FollowSymLinks IncludesNoExec
また次のコメントははずしておく
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
indexとして使いたいので、ここもなおす
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var wiki.cgi index.shtml
再起動は忘れずに
あとはindex.shtml作成して、antでコピーしてやるだけ。
<!--#config timefmt="%Y年%m月%d日%H時%M分" -->
<!--#flastmod file="./index.shtml" -->頃からビルドしていますよ。
参考
http://www.miloweb.net/apachessi.html
http://cocohome.hp.infoseek.co.jp/ssi/flastmod.html