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
1
vote
1 answer

Puppet - Call custom function (which contains case/when) from manifest

I am working on puppetizing my httpd and nginx vhost confs. Right now I have 5 servers which each have their own port and are run on server1, while nginx is running on server2. Obviously I need to keep the manifest calls to httpd and nginx separate…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
1
vote
2 answers

Linux: find thin server running on port 80 and kill it

On my Linux server I ran: sudo thin start -p 80 -d Now I'd like to restart the sever. The trouble is, I can't seem to get the old process to kill it. I tried: netstat -anp But what I see on port 80 is this: Proto Recv-Q Send-Q Local Address …
Andrew
  • 111
  • 1
  • 4
1
vote
2 answers

How do you configure rvmsudo using chef?

I am using the chef-rvm cookbook by fnichol to perform a system wide installation of Ruby via RVM with the rvm::system recipe. I.e. In my run list, I have (with no additional attributes set): recipe[rvm::system] After I cook my ubuntu server,…
Clinton
  • 133
  • 6
1
vote
0 answers

Why doesn't Chef use my default attributes in my development environment?

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified in cookbooks are not available to nodes in my…
Justin Force
  • 338
  • 1
  • 5
  • 14
1
vote
2 answers

Ruby Application Webroot Location

I have inherited a ruby application at work and I am fairly new to ruby hosting environments. The application is hosted on a linux server but I am unable to find where the webroot is. I have looked for /var/www which is the webroot for apache on…
Helius 06
  • 13
  • 3
1
vote
2 answers

How to upgrade ruby on CentOS 5.3?

I have a CentOS 5.3 machine which I want to run SASS. To do this, I need to update the version of Ruby on the system. I've tried multiple methods of doing this, but none have worked so far (including: How to update Ruby on CentOS 5.x & Install Ruby…
user1337
  • 153
  • 2
  • 6
1
vote
1 answer

Missing library when bootstraping Ubuntu 12.04 with Ruby 1.9.3 from source

Apologies for any incorrect terminology. I'm using Chef to automate server deployment. I've built an AMI that has Ruby 1.9.3 compiled from source and then chef takes over from that point. When ruby is compiled from source libruby.so.1.9 gets added…
birarduh
  • 111
  • 1
1
vote
1 answer

Eruby or Erubis on Apache with Ruby 1.9.2

I am trying to get eruby OR erubis installed on my Apache (2.2.3) webserver so I can run inline ruby code on .rhtml files -- I am not great with command line and shell scripting, I'm experimenting and trying to learn new things but I cannot for the…
thomas
  • 113
  • 4
1
vote
1 answer

Ruby Enter Your Password to Create App

I have just installed ruby on rails on a Centos server with directadmin following http://blog.ilwilliams.net/installing-rails-3-with-apache-on-centos/ I'm now in a non privileged user account (without sudo) and am trying to create an application…
Pez Cuckow
  • 525
  • 3
  • 8
  • 22
1
vote
1 answer

Loading dependencies for custom puppet functions

I have written a custom puppet function, which is working fine, that depends on the cloudservers gem (a Rackspace client library). This is fine if I have pre-installed the gem on a server before running puppet but totally breaks if I have not…
Ben Smith
  • 157
  • 5
1
vote
1 answer

How to make uploading large (more than 1MB) files work with nginx, rails and uploadify

I have problem with my production nginx configuration (on my development machine with mongrel everything works). My environment is: nginx as proxy, rainbows as backend running rails 3.1 application with ruby 1.9.2. When I'm trying to upload large…
Adrian Serafin
  • 115
  • 1
  • 3
1
vote
3 answers

How can I uninstall software from an RHEL 5 system?

I installed Rubygems 1.3.4 on an RHEL 5 system. The way you install that is to download source and run setup.rb. I did not find a package for it through yum list available. Now I'd like to uninstall it because I've decided to use a different version…
Agvorth
  • 2,459
  • 4
  • 29
  • 29
1
vote
1 answer

Can't install Passenger for Apache

To set up Passenger some packages must be installed, for example libcurl4-openssl-dev: user@ubuntu:~$ sudo apt-get install libcurl4-openssl-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages…
Paul
  • 263
  • 1
  • 5
  • 16
1
vote
2 answers

Apache & Nginx on Ubuntu 10.10

I'm running Ubuntu 10.10 with three apache virtual hosts. I just followed this tutorial to set up Rails 3 on Ubuntu using PAssenger and nginx. Everything is running fine except rails/nginx. When I try to start it, I get this message: * Starting…
Kevin Brown
  • 263
  • 2
  • 13
1
vote
1 answer

multi-user rvm gem install failure when called from CloudFormation::Init

I've taken an Amazon Linux AMI (based on CentOS) and installed RVM (1.10.3) to it in multi-user fashion (see {1} below). I used that to install ruby 1.9.3-p125, rubygems 1.8.17, and bundler 1.1 as the baseline requirements for most things I'm…
Peter Mounce
  • 1,253
  • 5
  • 16
  • 29