My environment does not have a global DB constant, consequently I cannot 
run `DB.disconnect` - does it need to be initialised somewhere?

On Tuesday, April 22, 2014 3:11:21 PM UTC-4, Jeremy Evans wrote:
>
> On Tuesday, April 22, 2014 12:08:24 PM UTC-7, Kenny Meyer wrote:
>>
>> I would like to use Puma on Heroku using Sequel as the ORM. I am not able 
>> to find any code examples for Sequel-related Puma configuration.
>>
>> The AR code snippets is the following:
>>
>> on_worker_boot do
>>   # worker specific setup
>>   ActiveSupport.on_load(:active_record) do
>>     ActiveRecord::Base.establish_connection
>>   end
>> end
>>
>> How one would translate this to Sequel?
>>
>
> With Sequel, you need to disconnect before forking connections 
> (DB.disconnect).  If puma does not offer a before_fork hook, you can 
> probably just run DB.disconnect at the end of config.ru.
>
> Thanks,
> Jeremy 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to