Page 1 of 67 | Next »
[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
[10:56:17] dionysus69: hammer065: https://teamtreehouse.com/community/nested-params-rails-4 this is for nested strong parameters
[07:41:41] dionysus69: are there any go to vulnerabilities for the rails app that is launched in development mode facing internet?
[07:43:01] dionysus69: I have found one site on tor network which shows a full stack trace on routing error. That indicates that the site is launched in development mode
[07:45:49] dionysus69: important ethical note, compromising such website is very much ethical since it deals in shady business, you just have to trust me on that
[14:29:32] dionysus69: any idea why these two examples are returning incorrect results? https://gist.github.com/webzorg/b4e3d783ea1aa8a37970ecca8f1b43e5
[15:15:27] dionysus69: I converted it above and then I also checked later on second line it is also Bdecimal
[11:28:03] dionysus69: Hey all, would you help me decide whether I should go the Heroku way for scaling or Google Kubernetes Engine platform? My problem is to find simple platform for best price.
[11:43:23] dionysus69: well, we then will have to provide constant electricity and internet which is not 100% guaranteed in my country :s
[13:16:24] dionysus69: blackcross: thank you, since moving an app to docker isnt that complicated I will make both setups and make them work for a month, see which requires lower complexity, price and ability to scale
[10:30:51] dionysus69: davidh38: just simplify your life and download sublime3 with rubocop or something
[10:35:39] dionysus69: for various reasons which you will understand with experience, you are not welcome to use IDE in ruby community
[10:44:26] dionysus69: setting up ruby environment is as easy as install ruby and open up a text editor. I don't know, if you paid for rubymine, I guess you can invest more time in it, I don't mean you should abandon it or anything
[10:52:04] dionysus69: dunno, I do things without pry or byebug, I usually get what the error messages says
[11:43:03] dionysus69: Rails.application.secret_key_base returns some random secret_key_base which is not in rails credentials. where is it coming from?
[11:43:38] dionysus69: also, changing Rails.application.credentials.secret_key_base doesnt invalidate cookies in my development env, shouldn
[11:50:32] dionysus69: it needs some initial configuration but after that you are good. it can integrate with any text editor I think. I use sublime
[11:51:21] dionysus69: well, rubocop won't know what content the code has in the view, so it cannot help with that part
[07:32:43] dionysus69: I had regular has_many relationship and the parent expected child class to be ParentClass::ChildClass instead of just ChildClass
[10:49:47] dionysus69: so I am getting into real scaling and real production infrustructure, and I need a very very important advice, what toolchain to use. I have heard of chef and docker and kubernates, which one do you guys use and why? and which one do you recommend for start?
[10:51:14] dionysus69: at the moment I have a basic infrustructure, the only separate node is the redis VM and I use capistrano for deployment. I was thinking that instead of continuing to scale up manually, I should look into orchestration methods
[13:17:41] dionysus69: any ideas why sidekiq is creating 51 connections when I have concurrency set to default 25?
[13:21:37] dionysus69: I think it's for throttling certain workers not to use more than given number of connections
[07:33:22] dionysus69: if anyone is using cloudflare here, how do you block IPs that try to brute force login, I tried fail2ban, it bans my ip fine but I still get access, I disable cloudflare and only then I get banned
[07:33:55] dionysus69: I inserted nginx module to restore original IPs for cloudflare redirected http/https requests but still no luck
[10:41:27] dionysus69: I have this line in log and the fail2ban failregex, it should work as I know but it doesn't, is my failregex correct? http://paste.debian.net/1042777/
[14:28:04] dionysus69: I am tinkering with fail2ban for a while now, this rule: REJECT all -- my_ip_here 0.0.0.0/0 reject-with icmp-port-unreachable gets added to the iptables but I am still able to render login page
[08:38:21] dionysus69: interestingly, this happens right during assets precompile step of deployment
[08:40:02] dionysus69: No connection pool with 'primary' found. (ActiveRecord::ConnectionNotEstablished)
[08:40:22] dionysus69: so seems you were right, some problem with database but on the other branch it worked
[08:44:36] dionysus69: so when I turn off postgresql service it returns the same error so I guess it cannot even detect database's existence
[08:53:44] dionysus69: sevenseacat: strange, I did git reset --hard HEAD~1 and git is set to the same commit, maybe a git problem
[08:56:01] dionysus69: so initializer had to be a problem, I have an empty initializer file and I didnt really know or remember that I cannot do that, I just thought the file would just get loaded and not expect class statement to be uncommented
[08:59:08] dionysus69: yea actually no, it fixes local but not the capistrano deployment, weird stuff