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
3
votes
1 answer

Most appropriate place for custom Puppet facts - RHEL

I'm not much of a Ruby guy, but found how to list the Ruby load path. Here's what it looks like for me $ ruby -e 'puts…
quickshiftin
  • 2,125
  • 5
  • 27
  • 41
3
votes
1 answer

Install gems of ruby 1.9 bins without suffix in openSuSE

I got issue on my openSuSE instances. By default in openSuSE after installation by gem utility (gem install some_app) you will got something like that: # some_app1.9 # chef-solo1.9 etc. That a bad behaviour especially if you want automate stuff.
user111277
3
votes
1 answer

Who should own the god process?

I have a stack running on ubuntu consisting of a Rack application written in Sinatra and GrapeAPI. The application stack includes Redis, Postgres, Nginx and unicorn. I want to use god to handle process monitoring. Currently deployment's are made…
Stewart
  • 151
  • 4
3
votes
1 answer

How to use monit to make sure only one instance of process is running

I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions. Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is running? And if so kill the extra instance?
3
votes
1 answer

Amazon Elastic Beanstalk: How do you customize a Ruby AMI?

The following article explains detailed how to create a custom Tomcat based AMI for Beanstalk. The key is running the following commands before creating your AMI: sudo -s cd /etc/init.d ./httpd start ./tomcat7 start However I didn't find any…
Elias
  • 227
  • 2
  • 4
3
votes
1 answer

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run chef-client and it ran without any…
milosgajdos
  • 1,828
  • 2
  • 21
  • 30
3
votes
1 answer

Installing resque on amazon ec2 instances

My problem is to process images through ec2 instances. Based this similar question: Separate server for Resque workers And in this article: http://highscalability.com/blog/2009/11/6/product-resque-githubs-distrubuted-job-queue.html I'm planning to…
Luccas
  • 101
  • 5
3
votes
1 answer

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as index.html but if I put in any other url I get a 500…
ajeetdl
  • 141
  • 5
3
votes
1 answer

Puppet templates and undefined/nil variables

I often want to include default values in Puppet templates. I was hoping that given a class like this: class myclass ($a_variable=undef) { file { '/tmp/myfile': content => template('myclass/myfile.erb'), } } I could make a template like…
larsks
  • 43,623
  • 14
  • 121
  • 180
3
votes
1 answer

Passenger fails to run on first load, but successfully launches after single refresh

I have a pretty simply passenger installation on my production server. It seems that every night the passenger process quits due to inactivity. When I hit the site in the morning, passenger starts up again and will give me a fairly straightforward…
Andy
  • 31
  • 1
3
votes
2 answers

Is there a bash equivalent to "some content #{foo}" with ruby?

I'm used to being able to pass variables inside strings in ruby, like so "message in double quotes #{expression_or_variable_to_run}" What's the equivalent in bash, for really quick scripting?
Chris Adams
  • 709
  • 3
  • 11
  • 18
3
votes
1 answer

gem environment and $GEM_PATH not updating when using rvm

I'm trying to upgrade ruby and rails gem on a server with cPanel, to do this I installed rvm and I successfully installed different versions of ruby... great stuff! Having a problem though, the server seems to be ignoring which gemset to use. After…
Abe Petrillo
  • 133
  • 2
  • 10
3
votes
2 answers

Simple DNS Server or Tool for Local Web App Development

When I develop web-apps I sometimes have to hard-code full URLs into my generated markup. Even though one can generally get by using relative URLs a la Something things can get more complicated when I have to point…
user101340
3
votes
1 answer

How do I get Apache's www-data to recognize RVm?

Problem: Apache/Passenger don't recognize RVM I have a multi-user install of RVM, per the canonical instructions: http://beginrescueend.com/rvm/install/ I then edited /etc/profile.d/rvm.sh to include the following line so that Ruby 1.9 is the…
Manu R
  • 175
  • 1
  • 2
  • 6
3
votes
1 answer

Is it normal to have a Ruby process always running in Ubuntu?

I'm running Ubuntu 10.10 with Apache2, RVM (For Ruby) and Passenger (mod_rails). When I look at the "top" application, I always notice the same Ruby process consuming about 1/4 of the memory on my server. I'm just wondering if this is normal for my…
Dan
  • 33
  • 2