<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
04:03 wikimatze joined
04:53 kuadrosx joined
08:09 daryl joined
08:09 <Wakatara> Hola padrini!
08:11 <Wakatara> Quick question on using puma as a web server... just writing up a blog post, but also noted that enabled puma via a config/puma.rb file where you need to specify it establishing the database connection to Activerecrod means you need to disable Establish Connection directive in database.rb
09:03 ksinkar joined
09:39 <Wakatara> Is there a better way to do this?
09:41 <Wakatara> To be specific, using foreman start or heroku to start padrino works great with puma now (and is much, much faster). However, padrino console does not work unless I re-enable that directive in database.rb. Which feels like it is asking for trouble having both of them set.
09:44 ksinkar joined
09:44 <Wakatara> The particular directive I'm referring to is:
09:45 <Wakatara> # Now we can establish connection with our db.
09:45 <Wakatara> ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Padrino.env])
09:45 <Wakatara> in database.rb
09:45 <Wakatara> You need to move that to puma's config to get foreman to spin up but leaving it uncommented in the database.rb file feels like it might cause problems somewhere.
09:52 <Wakatara> (and yes, I will write up a quick blog post on this when I have the canonical answer on this.
09:52 <Wakatara> )
11:56 Wakatara joined
12:01 Wakatara joined
12:34 wakatara joined
13:16 kuadrosx joined
14:15 kuadrosx joined
14:52 tundramonkey joined
16:33 jaequery joined