Questions tagged [ruby]

Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails

Ruby is an object oriented programming language that has programmer productivity as one of its design goals. Most people are familiar with it these days as part of Ruby On Rails, a web application framework.

498 questions
2
votes
2 answers

Puppet and Vim fighting over Ruby version

I have installed puppet 3.0.1 from the .dmg from puppetlabs. If I remove ruby 1.9.3, puppet works, but other things like my vim install (dependant plugins) do not. According to http://docs.puppetlabs.com/guides/platforms.html#ruby-versions 1.9.3 is…
devians
  • 223
  • 2
  • 7
2
votes
0 answers

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; proxy_set_header X-Real-IP $remote_addr; …
lowk3y
  • 39
  • 2
2
votes
1 answer

segfault in timeout.rb using gem with ruby enterprise edition (ree-1.8.7)

I'm attempting to install a gem on my new Ubuntu 12.10 (GNU/Linux 3.6.5-x86_64-linode28 x86_64) server, and I'm getting a segfault in timeout.rb . I've installed rvm, and ree, and getting this error when I attempt to use install…
Bee
  • 169
  • 6
2
votes
0 answers

Apache2 + mod_ruby - how to handle all requests with one script?

I was about writing my own HTTP Server. Well I did, but conerning security issues it was too time expensive doing it on and I drove back having a unique solution with Apache2 and Mod_Ruby in-between. Now I have a single Ruby Script, launching other…
JAkk
  • 121
  • 2
2
votes
2 answers

Monit and Thin and Unfound Gems

I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem error: Missing the Rails 2.3.14 gem. Please `gem…
TenJack
  • 193
  • 2
  • 7
2
votes
1 answer

Why does my namespace and class name conflict?

I have a puppet module installed that is called ntp. A node do I define by node testip { include myconfig::ntpp } and in /etc/puppet/modules/myconfig/manifests/init.pp have I class myconfig::ntpp { include common class {'ntp': server_list…
Sandra
  • 10,303
  • 38
  • 112
  • 165
2
votes
1 answer

Why isn't the variable available?

Background I would like to apply this idea of having a common class that includes all the specific info about my setup. So I have created /etc/puppet/modules/common/manifests/init.pp with class common { include common::data } class common::data {…
Sandra
  • 10,303
  • 38
  • 112
  • 165
2
votes
2 answers

Cannot find amitools

I have newly created an Amazon EC2 instance. It came with Ruby 1.8.7 which I uninstalled (with YUM) in favor of RVM and Ruby 1.9.3. However, every time I connect to the instance via SSH I get the following error: find: '/opt/aws/amitools': No such…
whirlwin
  • 183
  • 1
  • 1
  • 5
2
votes
1 answer

Mysterious Ruby processes on Rails server

I'm trying to chase a bug on a Rails site and I've noticed that there are recurring Ruby processes which are hogging CPU and won't go away. I'd like to suss out what's starting them and how to either stop them or give them the resources they need to…
pjmorse
  • 1,550
  • 1
  • 17
  • 34
2
votes
1 answer

Thin configuration file for HTTP and HTTPS

I'm trying to configure both HTTP and HTTPS on thin. I have this configuration file: environment: production address: 0.0.0.0 port: 9292 chdir: /home/[user]/[mySinatraAPP] pid: tmp/thin.pid rackup: config.ru log: server.log max_conns: 1024…
rodchile
  • 23
  • 1
  • 3
2
votes
1 answer

Separate server for Resque workers

I'm trying to segment a few servers for a Rails project and part of that is entertaining the idea of isolating Resque workers to their own box. I already have Redis broken out, but is it common to put Resque workers elsewhere? Do they need to be…
cmhobbs
  • 267
  • 1
  • 3
  • 12
2
votes
1 answer

Setting up Thin, Bundler and Ubuntu

I have a very simple Ruby application which uses Thin and Bundler that I need to stick on an Ubuntu box. I've got as far as getting Ruby, bundler etc installed on the server, but am having trouble running the application itself. Essentially I need a…
Neil Middleton
  • 412
  • 1
  • 4
  • 11
2
votes
2 answers

Is removing ~/.rvm/ all I needed to perform a clean re-install

I have installed ruby and gems under ~/.rvm/, now I want to re-install all the stuffs agaain. Are there any modifications/links live outside of this folder? So, by just removing the folder ~/.rvm/ is okay for me to start over?
Howard
  • 2,135
  • 13
  • 48
  • 72
2
votes
1 answer

Unicorn and copy_on_write_friendly?

While researching Unicorn configuration options I came across this snippet.. GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true If I undertand correctly, it optimizes how Unicorn handles memory allocation and resource…
Miko
  • 1,759
  • 4
  • 22
  • 28
2
votes
2 answers

Whats better, Higher GHz and fewer cores or more cores with lower GHz for a ruby app

I just finished developing a web crawler that essentially allows users to crawl their site and it informs them on errors through out their site. However my app is very server resource intensive. it is a ruby app using rails, mongo, a handful of…
akaDanPaul
  • 21
  • 1