capistrano
1 % cap deploy:web:disable
コマンドを実行すると、デプロイ先のサーバ上で、shared/sys
しかし、capistrano
その設定については、Apacheを使っている場合は以下のような感じにすればOKです。
1 RewriteEngine On 2 RewriteCon d %{DOCUMENT_R OOT}/system/ma intenance. html -f 3 RewriteCon d %{REQUEST_UR I} !^/images/ 4 RewriteCon d %{REQUEST_UR I} !^/javascrip ts/ 5 RewriteCon d %{REQUEST_UR I} !^/styleshee ts/ 6 RewriteRul e ^.*$ /system/ma intenance. html [L] 7 RewriteRul e ^/(images|javascript s|stylesheet s)/(.*)$ /$1/$2 [L]
ちなみに、メンテナンスページを取り下げるには、以下のコマンドを実行します。
1 % cap deploy:web:enable
これで、maintenanc
See Also
posted by
genki
on Tue 23 Dec 2008
at 16:47