Okey, today it’s time to see how this site keeps up via nginx instead of apache. So far so good, at least almost everything seems to still work as expected. In switchover, getting nginx + passenger + rails to work took some effort, but this was still reasonably easy. However, bigger trouble was getting this…
Read moreNokogiri + Linux => trouble?
Nokogiri gem version 1.6.x has been a bit problematic in Linux, since by default it just fails to install. And only workaround for it has been to use 1.5.x version instead. Now recently I hit the trouble, since another gem required at least version 1.6 of nokogiri, so I didn’t any longer have option to…
Read morePraise yourself – test yourself
Finally, after a while I started applying into development projects some automated tests using Travis CI. Thanks to Travic CI documentation integration of projects was rather painless. So far following projects are running in Travis CI: ngannotate-rails capybara-ng In both of these projects I needed to take advantage of Travis features. Namely I needed to…
Read moreWalking in the assets land
Welcome daisy! Setup done earlier for Apache2 + Rails wasn’t yet very optimal. This fact was neatly indicated by google pagepeed index tools. Luckily few fixes are rather easy to apply. Assets not compressed Ups, this is triviality, I had forgotten to copy relevant caching logic config when setting up new virtual host config. /etc/apache2/v.hosts.d/host.kari.dy.fi.conf…
Read moreTuning up apache2 + passenger
Todays topic to is tuneup a bit more server what was setup earlier. Goal is to, Improve logic for redeploy, thus to avoid breaking running server when doing new deploy Remove dependency into private user account, but use instead account specific to this deploy only To use server instance specific ruby version instead of globally…
Read moreCameras, action: setup passenger to apache2
Our guidance sources shall be today: Install package OBS:Server:Unstable / rubygem-passenger Phusion Passenger users guide, Apache version How To Setup a Rails 4 App With Apache and Passenger on CentOS 6 Setting up Rails app on Apache with passenger – Rails doesn’t seem to load Now, when having all interesting source material in hand lets…
Read moreBoxing match: traceur vs babel
Evaluating traceur and babel in rails environment to see how well they behave in converting simple Ecmascript 6 file. Our competitors today are traceur-rails sprockets-traceur sprockets-es6 Notes: traceur-rails works for some cases but fails for ”let” statement sprockets-traceur seems to fare better than traceur-rails sprockets-es6 is not production ready yet (depends from beta version of…
Read moreQuick Small Buzy Gazelle Jumped Over The Tiny Fence
What’s in my mind now? Small project: – Setting up Rails to run behind Apache 2 * How To Setup a Rails 4 App With Apache and Passenger – Starting to use Ecmascript 6 for AngularJS * ES6 + AngularJS * Writing AngularJS Apps Using ES6 – Setting up ES6 transpiler for Rails * traceur-rails…
Read moreMantra of over engineering
Look at this: Hibernate is more complex than the problem it tries to solve I’ve to agree with that. There seems to be over engineering mantra embedded in to Java world. If something is not re-factored into ”enterprisy” complexity, then technology is not considered good. In other words this is known also mantra of job…
Read moreJavascript dependency hell
Okey, Scenario is this: There is two competing libraries for ”_” (aka. underscore) global variable. Libraries in question are ”underscore” and ”lodash”. Problem is that due to javascript compatibility dependency hell, it’s quite difficult to have only one of them. For example. in simple test project (either using Jam or Bower) I’m failing to accomplish…
Read more