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
3 answers

Rails 3 shows 404 error instead of index.html (nginx + unicorn)

I have an index.html in public/ that should be loading by default but instead I get a 404 error when I try to access http://example.com/ The page you were looking for doesn't exist. You may have mistyped the address or the page may have…
Miko
  • 1,759
  • 4
  • 22
  • 28
1
vote
2 answers

New to Ruby on Rails, having socket trouble with MySQL (on Mac OS X)

This is my first question on serverfault, although I have used stackoverflow before. I am in a Ruby on Rails class over this summer and need to get RoR running ASAP. I used MacPorts to install Ruby, Rubygems, Rails, and mysql (I installed two ports…
adam_0
  • 113
  • 6
1
vote
0 answers

gem mirror segfaulting

I'm trying to create rubygems mirror on my VDS doing the following: $ gem mirror $ gem generate_index -d /home/rubygems/mirror The problem that each time I run first command ruby segfaults with following message: fetching:…
Eimantas
  • 119
  • 6
1
vote
4 answers

How do I configure a website hosted on a Rackspace cloud server (Ubuntu)?

I have set up a Cloud Server instance on Rackspace, and I have purchased a domain name and directed it to the IP address of my server because I want to host a Sinatra application on this server, but it's my first time doing this and I need some…
picardo
  • 147
  • 3
  • 11
1
vote
2 answers

How to tell rails to use non-default ruby?

I need two different versions of ruby on a server. The packaged ruby for the packaged puppet to work, and a compiled ruby for a rails web app to work. So basically I want the default ruby to be the ruby from the package, and for rails to use the…
Hamish Downer
  • 9,420
  • 6
  • 38
  • 51
1
vote
1 answer

Dedicated server configuration - some tips -Xenserver/Debian

I am migrating from a vps based hosting to a dedicated hosting (8GB RAM/1TB HD). I need to run multiple Drupal and Ruby based applications? what would be the recommended configuration. I was thinking of two options. 1) Install multiple Debian os on…
Sanjay S
1
vote
3 answers

What steps can you take to ensure sane build environments when compiling software?

I'm having a horrible time getting a piece of software to compile on a CentOS box, and the problem I've listed below is specific, but I'm hoping the correct approach that comes out of this is one that can be applied to similar problems, as this…
Chris Adams
  • 709
  • 3
  • 11
  • 18
1
vote
3 answers

Insecure world writable dir

I can't figure out how to fix this, apparently ruby doesn't like anything in my home directory. /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin/gem:4: warning: Insecure world writable dir /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin in PATH, mode…
JP Silvashy
  • 1,447
  • 6
  • 24
  • 30
1
vote
3 answers

centos ruby 1.8.7 repository

I can't find a repository that contains ruby 1.8.7. All repos only contain 1.8.5 or 1.8.6 versions. Does anyone know of any repos with ruby-1.8.7?
Andrey Kuznetsov
  • 169
  • 3
  • 12
1
vote
1 answer

Meta Information within Apache config files

I have a number of VirtualHosts config files controlling sites served on Ubuntu server using Apache. I'm writing a ruby script to parse these files, and then display information about the site being hosted. One of the things I'd like to do is…
purpletonic
  • 197
  • 3
  • 12
1
vote
3 answers

Differing packages between Ubuntu 9.04 and 9.10

So I've been playing around with VirtualBox and both of the above Ubuntu versions and I've noticed that there are some differences between the available packages when doing a apt-cache search . Some of these I'm sure are obvious, as they…
bergyman
  • 133
  • 3
1
vote
1 answer

How best to automatically deal with multiple site_ruby locations?

Is there a way to automatically append to $: variable in ruby to account for additional site_ruby locations? Ruby is installed in /usr/local/ and using gem_install will properly install the new ruby files in to /usr/local/lib/ruby/site_ruby. However…
cclark
  • 567
  • 2
  • 6
  • 14
1
vote
0 answers

Scalelite Load balancer giving error when trying to add new servers

I have two stand alone Vms in vultr running on Ubuntu 18.04 and on top of it I have installed Bigbluebutton server configs and a Greenlight frontend. I have configured another server for scalelite on vultr itself and installed Postgres and redis on…
Cecil John
  • 11
  • 1
1
vote
1 answer

/usr/bin/env: ‘ruby2.7’: No such file or directory

I'm trying to setup ruby using rbenv on a server, instead of the apt-get installed version of ruby and bundler. I followed Digital Ocean's guide, deviating only on ruby version (I need 2.7.1) and ruby installation path (PREFIX=~/local…
Goulven
  • 111
  • 1
  • 3
1
vote
0 answers

Installing sensu plugins as per ruby version

I have Ruby version 2.3 installed and I was looking to install sensu-plugins-http:6.1.0 because the latest version was installing another dependency which needs ruby to be on higher version. Like this I keep getting error for many such dependencies…
Learner
  • 119
  • 3