タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

plackに関するkazuhookuのブックマーク (3)

  • Plack::Middleware::Auth::DBIC ?

    Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message Hi there,Is anyone working on a Middleware like that? It seems like an obvious idea: 1. If there is user_id in session - retrieve that user and put it in env 2. If there is login and password params in env - retrieve the user from the db and check the password if

    kazuhooku
    kazuhooku 2010/06/25
    「They always use callbacks and/or OO duck typing, so it's extremely easy to adapt to other class implementations as well as testing/mocking. In general, writing a middleware component that works only with particular implementation of modules and APIs is a bad idea」
  • はてなグループの終了日を2020年1月31日(金)に決定しました - はてなの告知

    はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28

    はてなグループの終了日を2020年1月31日(金)に決定しました - はてなの告知
    kazuhooku
    kazuhooku 2010/05/25
    cho45++
  • cronolog と plackup の連携 - tokuhirom's blog

    multilog に access logerror log をまぜてだすと、エラーでてんのかどうかよくわからなくなっちゃうので、まあわけた方がよろしい。 multilog でパターンマッチで適当に分割するという手もあるけれど、アクセスログは集計などにもつかうので、日ごとにファイルがわかれていた方が便利でしょう。 というわけで、こんな風にしてみた。 use Plack::Builder; builder { open my $fh, "| /usr/bin/cronolog /var/log/plackup/%Y/%m/myapp-%Y%m%d.l og" or die "cannot load log file: $!"; select $fh; $|++; select STDOUT; enable 'Plack::Middleware::AccessLog', logger =

    kazuhooku
    kazuhooku 2010/05/09
    Server::Starter を使ってる場合も、これでOK (cronolog や rotatelogs は O_APPEND でファイルを開くので)
  • 1