Page 1 of 67 | Next »
[07:44:29] dionysus69: I am having trouble using Daemons.run command from the script, it works if I run it from bash like daemon.rb start or from rails, exec "ruby", "daemons.rb"
[07:50:04] dionysus69: here are the files https://gist.github.com/webzorg/cbb6b37ec3c9c9357f6e16199437270e
[07:51:01] dionysus69: there are two scenarios, both calling the same file, one works another doesnt, they are commented
[10:46:13] dionysus69: fox_mulder_cp: I use sidekiq but sidekiq cron provides once per minute functionality as a lower bound. I need tasks running every 5 seconds or less
[14:05:48] dionysus69: I have a naming dillema, I have an object named Address, it should have couple fields, one of them is the address itself, how should I name that field? Address.first.address doesnt feel write
[14:19:45] dionysus69: its more like a bitcoin address, address has 2 values basically, the address and balance :)
[07:10:09] dionysus69: thanks havenwood :) I have used spiped before when I was doing my own infrastructure but wasn't sure if heroku was doing its own thing to secure coms
[07:56:18] dionysus69: redis cloud addon doesn't support SSL as a heroku addon, I will need to make a subscription on their website.
[09:34:27] dionysus69: does anyone here use heroku for production apps? if yes, what solution do you use for redis? I have questions particularly about Cloud Redis and the connection security
[07:14:15] dionysus69: is it possible to use multiple select like checkbox? so it includes unselected as 0s in the submitted params
[08:01:05] dionysus69: just for info, there's this Rails group on linkedin for those who are interested: https://www.linkedin.com/groups/13653102/
[08:17:49] dionysus69: I am little confused about the migration/schema flow when I am migrating to different platform
[08:18:31] dionysus69: so I have a schema that has changed allot on staging, and I will be restoring production database on new platform without past n migrations
[08:20:01] dionysus69: so I wonder, do I `HAVE TO` run migrations on old production db and then make a backup, or can I rerun certain migrations on imported db?
[08:39:54] dionysus69: ok so if I copy over my production db and run migrations, it will pick up from the right place right? since pg keeps track of which are the last ran migrations, the state of schema doesn't matter at the point correct, unless I am loading db from schema?
[11:08:57] dionysus69: which is considered more secure, to keep super secret ssh key in rails 5.2 credentials or let's say PaaS ENV var?
[11:09:58] dionysus69: since master key required to decrypt rails creds is also in PaaS env var, security of both options seem to be pretty same
[12:48:10] dionysus69: ok so you think spawn is better used in this case than fork? but they roughly do the same right, both return the pid
[12:58:56] dionysus69: jhass: result :P last_call ? exec(*ssh_args(args_for_args)) : spawn(*ssh_args(args_for_args))
[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: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: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 :)
[12:41:37] dionysus69: I need to run 6 ssh tunnels from ruby, I can't obviously run them with 6 execs since on the first one, the process will be replaces
[12:42:35] dionysus69: I don't want to run them in separate rake jobs since it will take abnormaly long and resource spike will be high too
[12:54:47] dionysus69: well I am launching an ssh tunnel so in the end it has to be a non ruby process
[12:59:17] dionysus69: I use ruby because I have some secret credentials taken from the rails env, in script I would have to rely on env vars, plus I am not that good at bash
[13:02:13] dionysus69: so I fork 5 times and exec inside each of them and then exec from my main process too. this is so far what I came up with
[06:40:58] dionysus69: is there a conventional way to save record errors to the column? I moved model validation to just a method since I need to validate this at sidekiq dyno, but how should I tell user what the rejecting error was, create a custom field on the model?
[11:07:36] dionysus69: how do I validate a model inside a worker? this particular validation works only from the sidekiq node
[12:18:16] dionysus69: tbuehlmann: I need to validate a field before AASM state is changed :S there's lack of documentation online for this specific scenario
[08:07:34] dionysus69: yottanami: yes, if you pass correct params while generating scaffolds, it will create full working MVC. in case you already have models you can generate scaffold_controller which creates controllers + views, you still need to manually pass in model attributes see bin/rails generate scaffold_controller HighScore game:string score:integer https://guides.rubyonrails.org/command_line.html#rails-generate
[08:08:25] dionysus69: in your case you will get jbuilder views if you are using default rails --api mode
[13:25:32] dionysus69: does anyone know how do I run 4 event machines into single heroku dyno?, when I declared command; command; in Procfile, it only runs the first one
[10:06:06] dionysus69: https://stackoverflow.com/questions/32600912/rails-4-manage-file-based-translations-at-admin-end
[08:30:03] dionysus69: adding embedded git repository: vendor/cache/ruby/2.5.0/bundler/gems/ckeditor-dc2cef2c2c33
[12:00:21] dionysus69: How are assets treated in production containerized environment? do I have different container for supplying assets or every pod has its own copy of assets precompiled within the app pod itself?
[09:03:14] dionysus69: This doesn't work in application.rb config.require_master_key = false, I want to disable credentials decryption while in build step of the deployment, assets precompilation shouldn't require master keyt
[09:07:01] dionysus69: oh thanks tbuehlmann, now I get it, I didn't know it was explicitly declared inside environment/production.rb
[14:07:06] dionysus69: at which stage of deployment I should precompile assets when deploying with kubernetes? if I precompile and run rails s in dockerfile, precompilation happens everytime, I thought of precompiling locally and then copying assets in the docker container. does that sound legit?
[06:27:13] dionysus69: So, I decided to go with GKE (google k8s engine) for now, since it relatively simply solves many headaches associated with scaling. If anyone of you doesn't agree, let's discuss ^.^
[11:12:09] dionysus69: /original/inCollage_20181019_223425171.jpg I get that the first part of the name is the date, whats the last part ?
[14:00:54] dionysus69: nice nice, I couldnt help you with that question, I never done such a thing so :)
[14:01:38] dionysus69: yes I am fine, same to you, if you need a rails job give me facebook ping btw, we maybe looking for an extra employee ^.^ if you are in Georgia :)
[14:04:51] dionysus69: oh yes yes, say hi to him, let's move to #RubyOnRails-offtopic btw before one of the Jedies gives us a notice
[14:08:59] dionysus69: xo iqac vnaxe facebookze ro daposte prosta mec ar vici magisi gaketeba ar damchirvebia amitom ver dagexmare :)
[14:11:31] dionysus69: mec exla scalings vechalichebi, docker terraforms da kubernetebsac shevexe da var ert ambavshi :)
[14:12:37] dionysus69: tu ici ise railsis developeri damcyebic ki visac unda am mimartulebit scavla shegidzlia gamagebino
[14:13:40] dionysus69: mirchevnia digital oceanze pirdapir vmarto chemive infrastruqtura :) da eg kide rtulia
[14:40:33] dionysus69: dachi gamixarda sheni aq naxva martla, pirveli qartveli xar me vinc vici am channelshi :)
[14:47:29] dionysus69: xo ra, SPA rom gamoviyenot magisi sachiroeba jer ar gagvchenia, mashin front-end devic dagvchirdeba
[15:03:46] dionysus69: vax ara, Nodarma business daamtavra da exla DJ gaxda :D erti chemi tanamshromeli vici vinc rails-s iyenebs da vabakos tanamshromlebic shoridan vici meti aravin
[15:21:49] dionysus69: dachi ise tu iuris sheudzlia chveni saitis security analizis reporti rom gagviketos ra pirobebi aqvs gamagebine da sheidzleba shevukvetot
[08:06:20] dionysus69: I am trying to access constant defined in environment.rb inside the application but it gives constant undefined. any ideas how can I share constant in both of those locations?
[08:08:52] dionysus69: sevenseacat: https://gist.github.com/webzorg/0889b59acfe54a3eb2a77616efc5e8dc
[08:11:24] dionysus69: anyways, I tried defining the constant before requiring application, still the same error
[08:11:43] dionysus69: I obviously need to define constant inside the application, which is where? source code? :S
[08:15:57] dionysus69: thus now I just defined constant on top of application.rb file, now it is available both in environment.rb >> config.ru
[08:28:31] dionysus69: now I can do config.logger = ActiveSupport::Logger.new(STDOUT) if DOCKERIZED, even conditional url in database.yml, exciting :D