タグ

ブックマーク / blog.64p.org (3)

  • Plack::Server::Standalone::Prefork::Server::Starter から Starman への移行 - tokuhirom's blog

    plackup -s Standalone::Prefork::Server::Starter ってかいてあるところを plackup -s Starman --worker 3とかにかえればいい。 starman っていうコマンドがあるけどこれは alias starman="plackup -s Starman"相当のコマンドなので無理につかう必要はない。 Starman のオプションは starman -hとすればみれる。 なお、Starman は Plack の開発版リリースが必要なので注意。 Starman は UNIX domain socket を listen することも可能なので、nginx などを front の reverse proxy としておいている場合等では、うまく利用するとパフォーマンスが向上するかもしれない。

  • tokuhirom blog

    Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at

  • about Test::More::done_testing - tokuhirom's blog

    Test::More::done_testing が導入されているわけですが、みなさんつかってますか? Test::More の 0.87_01 から導入されてる新機能なんですが 0.87_01 Sun Mar 29 09:56:52 BST 2009 New Features * done_testing() allows you to declare that you have finished running tests, and how many you ran. It is a safer no_plan and effectively replaces it.というわけで、無計画な人でも安全な感じになります。 具体的には以下のような感じ。 15:24 tokuhirom: plan の逆っていうか 15:25 tokuhirom: plan で数を書くのめんどいじゃんすか 15

    twodollarz
    twodollarz 2010/03/02
    [Test::More]
  • 1