ruby-2.1

Memory usage increase with Ruby 2.1 versus Ruby 2.0 or 1.9

佐手、 提交于 2019-12-03 01:51:12
I recently deployed an upgrade of Ruby from 2.0 to 2.1.5 to my Heroku web application, and I am consistently hitting memory quota errors now, whereas with 2.0 and 1.9 this never happened. There is a limit of 512MB for a normal Heroku Dyno, and I am running 2 processes with Unicorn, along with one thread with Sidekiq across two dynos. After reading Phusion Passenger memory consumption increase from 1.9.3 (system) to 2.1.2 (RVM) on Ubuntu , I tried setting the environment variable RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR to 0.9 to disable generational garbage collector, and it did improve memory

Ruby 2.1 with erubis Template Engine

你。 提交于 2019-12-01 12:27:27
We are looking for fastest template engine for rendering of views. As i understand erubis is the fastest template engine in ruby. My usecase is render templates through script. Looking at the gem official page it's latest release was in 2011. Not sure if the community is active. https://rubygems.org/gems/erubis/versions Does anyone use ruby 2.1 with erubis template engine? Is it recommended to use erubis with ruby 2.1? Thanks Abhay abrocks I ran benchmark between ERB and erubis rendering with below code snippet. erubis_render_time = Benchmark.realtime { template_content = File.read("#{Rails

Ruby 2.1 with erubis Template Engine

一笑奈何 提交于 2019-12-01 11:14:52
问题 We are looking for fastest template engine for rendering of views. As i understand erubis is the fastest template engine in ruby. My usecase is render templates through script. Looking at the gem official page it's latest release was in 2011. Not sure if the community is active. https://rubygems.org/gems/erubis/versions Does anyone use ruby 2.1 with erubis template engine? Is it recommended to use erubis with ruby 2.1? Thanks Abhay 回答1: I ran benchmark between ERB and erubis rendering with

AWS Elastic Beanstalk - How To Upgrade Existing Environment from Ruby 2.1 to Ruby 2.2

时光怂恿深爱的人放手 提交于 2019-11-30 06:24:55
问题 AWS Elastic Beanstalk - Cannot Clone With Latest Platform or eb upgrade from Ruby 2.1 to Ruby 2.2 I've been smashing my head on this one. Back in May, AWS announced that their Ruby Elastic Environments now offer Ruby-2.2 (e.g. ruby-2.2-(passenger-standalone) or ruby-2.2-(puma) ). I can't upgrade my existing ruby-2.1 environments to ruby-2.2. It appears I have to recreate them completely...that seems silly? Anyone else out there experiencing this? Am I just missing something simple? Extra

Ruby on Rails: no implicit conversion of Array into String (DEVISE)

白昼怎懂夜的黑 提交于 2019-11-29 08:49:17
I recently upgraded to OSX Mavericks 10.9 from 10.7, and since then it has been causing me lots of troubles. I upgraded Xcode, Command line tools, reinstalled homebrew and rvm, and finally got rails s to work (I spent a good 5 hours getting rmagick to work again). However, now when I try to access my app from my localhost, I get this error no implicit conversion of Array into String Here is the rails log: Started GET "/" for 127.0.0.1 at 2014-05-05 02:20:00 -0700 Processing by AccountsController#dashboard as HTML Completed 500 Internal Server Error in 0.3ms TypeError (no implicit conversion of

AWS Elastic Beanstalk - How To Upgrade Existing Environment from Ruby 2.1 to Ruby 2.2

梦想与她 提交于 2019-11-28 18:17:14
AWS Elastic Beanstalk - Cannot Clone With Latest Platform or eb upgrade from Ruby 2.1 to Ruby 2.2 I've been smashing my head on this one. Back in May, AWS announced that their Ruby Elastic Environments now offer Ruby-2.2 (e.g. ruby-2.2-(passenger-standalone) or ruby-2.2-(puma) ). I can't upgrade my existing ruby-2.1 environments to ruby-2.2. It appears I have to recreate them completely...that seems silly? Anyone else out there experiencing this? Am I just missing something simple? Extra Information I've been gleefully using ruby-2.1-(passenger-standalone) for several months in my staging and

Ruby on Rails: no implicit conversion of Array into String (DEVISE)

家住魔仙堡 提交于 2019-11-28 02:14:16
问题 I recently upgraded to OSX Mavericks 10.9 from 10.7, and since then it has been causing me lots of troubles. I upgraded Xcode, Command line tools, reinstalled homebrew and rvm, and finally got rails s to work (I spent a good 5 hours getting rmagick to work again). However, now when I try to access my app from my localhost, I get this error no implicit conversion of Array into String Here is the rails log: Started GET "/" for 127.0.0.1 at 2014-05-05 02:20:00 -0700 Processing by