#RubyOnRails - 05 December 2018
« Back 1 day Forward 1 day »
[02:05:38] jayjo: i'm trying to 'dockerize' a ruby on rails application - and I already have a running nginx instance with other services, is there a preferred way to pair these? Should I install unicorn into my rails image?
[08:13:39] emers2n: Question: I have data submitted to a form. I want to take this form data and submit it to the Shopify API. However, I want some steps in the middle. What's the simplest way to temporarily store this data until I'm ready to submit to API without recreating the model? https://pastebin.com/raw/7aNBs7r3
[08:24:15] dionysus69: I have 4 rails processes running on heroku on a single dyno and I am at the ceiling of the allowed 500mb memory. how do I create trimmed down version of my rails app with just a database connection and a redis connection? This service would require only couple of gems, instead of all the gems in the gemfile
[08:38:21] dionysus69: tbuehlmann: yes yes, this service basically does only one job, streams data from 4 different sources with faye-websockets
[08:39:21] dionysus69: since faye-websockets works with event machines, I was unable to launch it with threads or in any other way, so I just went with 4 different rails runners
[08:41:49] tbuehlmann: you could play with bundler groups and only require certain gems when needed. `Bundler.require(*Rails.groups)` in config/application.rb is a starting point for that
[08:43:01] tbuehlmann: also estimate the time (money) you're wasting doing this vs just upgrading to a bigger dyno
[08:43:13] dionysus69: yes that is the part where I am lacking experience at this point, so I dont load app with config/application.rb just make a copy of it and load specific group and then launch my services using different config.ru / application2.rb?
[08:44:02] dionysus69: atm heroku costs 40$ for the whole staging app, I will obviously use bigger non hobby dynos for production
[08:45:47] tbuehlmann: I assume just using a bigger dyno is way cheaper than your "optimizations" costs, but well
[08:46:55] dionysus69: production would cost at least 200$ with 2 app dynos let's say, spending that much on staging at this point is unviable for my company :)
[14:55:43] SteveRedka: Hi. I'm trying to make an asynchronous request to controller from js; it is supposed to render something on page.
[14:55:58] SteveRedka: Uploaded file: https://uploads.kiwiirc.com/files/8f6c2360acb1e8e898db64810835a348/pasted.txt