[erlang-questions] 回复: where start the poolboy privately?erlangdatabase connection pools

断舍离 459673409@REDACTED
Wed Feb 4 02:51:31 CET 2015


:) Thanks for your sharing!!Have a nice day!




------------------ 原始邮件 ------------------
发件人: "Roger Lipscombe";<roger@REDACTED>;
发送时间: 2015年2月3日(星期二) 晚上10:06
收件人: "断舍离"<459673409@REDACTED>; 
抄送: "erlang-questions"<erlang-questions@REDACTED>; 
主题: Re: [erlang-questions] where start the poolboy privately?erlangdatabase connection pools



That question is unlikely to be answered in its current form. However,
here are some pointers:

My (abandoned-ish) blog engine, https://github.com/rlipscombe/blerg,
uses poolboy.

- I start poolboy in my application dependencies:
https://github.com/rlipscombe/blerg/blob/master/src/blerg.app.src#L11.
- The "-s" entry point is here:
https://github.com/rlipscombe/blerg/blob/master/src/blerg.erl#L4.
- I add poolboy to my supervision tree here:
https://github.com/rlipscombe/blerg/blob/master/src/blerg_db_sup.erl#L20

Hope that helps,
Roger.

On 3 February 2015 at 11:28, 断舍离 <459673409@REDACTED> wrote:
> Thank you for reading my question!The URL is:
> http://stackoverflow.com/questions/28297708/where-start-the-poolboy-privatelyerlang-database-connection-pools‍
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150204/e3c2f484/attachment.htm>


More information about the erlang-questions mailing list