Subscribed unsubscribe Subscribe Subscribe

Hateburo: kazeburo hatenablog

Operations Engineer / Site Reliability / 運用系小姑 / Perl Monger

Server::Starter 0.13 was released. It supports `start_server --dir /path/to`

In Server::Starter 0.13, --dir option was added to start_server. start_server will do chdir to a specified directory before exec(2). It's useful when you use carton, proclet and deploy tool like capistrano that does rsync all project files and symlink to a newest directroy.

https://metacpan.org/release/Server-Starter

Server::Starter 0.13で start_server に --dir オプションが追加されました。exec前に指定したディレクトリにchdirします。cartonやprocletと、capistranoなどのまるごとrsyncして、最新バージョンにsymlinkを張るようなデプロイツールを使っている場合に便利だと思います。

$ start_server --port 54321 --dir /path/to/project -- carton exec -- plackup app.psgi

As same as this

$ start_server --port 54321 -- sh -c 'cd /path/to/project && carton exec -- plackup app.psgi'