0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

starman にPLACK_ENVを渡さないと、PLACK_ENV=depoymentになる

Posted at

タイトルそのままです。

starman コマンドのデフォルトのPLACK_ENVはdepoyment になるようです。

久しぶりに触ったので小一時間悩んだ。。。

starman  -e 'sub { [q{200}, [ qw(Content-Type text/html) ], [ $ENV{PLACK_ENV} ] ];}'

curlで叩いてみる

$ curl http://localhost:5000
deployment

plackupから叩くと development になります。

plackup -s Starman  -e 'sub { [q{200}, [ qw(Content-Type text/html) ], [ $ENV{PLACK_ENV} ] ];}'
$ curl http://localhost:5000
development
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?