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.
0
votes
1answer
32 views
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 ...
1
vote
1answer
21 views
How to determine if ftp/smtp is up and running using a script?
Similiar to how these uptime monitoring servieces perform checks if your smtp or ftp server is running, how could I do this myself using python/ruby?
0
votes
0answers
12 views
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 ...
0
votes
0answers
24 views
LoadError in Home#index “no such file to load — sass”
I'm getting the following error when i run my application with Apache (thru passenger gem) or Rails server:
LoadError in Home#index
Showing ...
0
votes
0answers
11 views
Why do i have to stop/restart cups in redhat linux in order to use a custom filter? [migrated]
A colleague wrote a filter utility for me in ruby that allows me to print barcodes from a textfile. (The filter replaces @{blah} with the proper PCL and a barcode checksum character so that "blah" ...
1
vote
2answers
25 views
How to generate a config file from node attribute (array) with Chef?
One of chef node's attributes is an array of hashes:
"array_of_hashes": [
{
"hash_key_1": "value1",
"hash_key2": "value2",
},
{
"hash_key_2": "value4",
...
1
vote
1answer
18 views
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 ...
0
votes
1answer
56 views
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 ...
0
votes
0answers
46 views
RVM permission denied on Ubuntu 11.10
I've been through all tutorials and solved problems I can find about RVM. There's something wrong with permissions. There are no rubies installed, and when I try to install one: "permission denied". I ...
0
votes
2answers
67 views
RubyGem on Debian
Hello I have this problem while installing many of the gems on my Debian 6 (upped to date).
# gem install activemodel
ERROR: While executing gem ... (NoMethodError)
undefined method `call' for ...
0
votes
2answers
34 views
Cannot install ruby version on redhat
I have the following problem and whatever I try, nothing helps. I hope someone could help me with this.
I have a redhat server and I'm trying to install redmine on it. Redmine needs Ruby >= 1.8.7 to ...
-1
votes
0answers
28 views
Connecting to my laptop's localhost from my mobile [closed]
I'm trying mobile-first development here and want to access the localhost on my laptop from my mobile.
Has anyone written a decent blog post on doing this?
My setup:
phone runs android
laptop ...
0
votes
1answer
66 views
Why won't rvm execute?
I installed RVM with gem install rvm.
gem list
shows rvm installed.
But when i type the command rvm, I get command not found. Where is the rvm bin?
0
votes
0answers
21 views
ruby or rvm ruby in Production web server
Currently our production server runs in system ruby. Passenger handles our rails apps.
Should I move to handling my entire ruby stuff using rvm? What advantage can rvm give me in a production ...
1
vote
2answers
58 views
Whats better, Higher GHz and fewer cores or more cores with lower GHz for a ruby app [closed]
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 ...
0
votes
0answers
136 views
“You have to install development tools first” error when installing Rmagick gem on Debian Lenny
I am on Debian Lenny with Ruby 1.9.2 (under RVM). I installed ImageMagick, required by rmagick, from source following this guide.
Now I get the following output when trying to install rmagick with ...
0
votes
2answers
100 views
Google Apps Mail & sendmail on web server [closed]
Possible Duplicate:
Outgoing mail from linux not being delivered
I'm looking into simplifying my web server setup and migrating from a Verio MPS dedicated machine to a rackspace cloud ...
0
votes
1answer
116 views
Using Upstart to manage Unicorn w/ rbenv + bundler binstubs w/ ruby-local-exec shebang
Alright, this is melting my brain. It might have something to do with the fact that I don't understand Upstart as well as I should. Sorry in advance for the long question.
I'm trying to use Upstart ...
0
votes
2answers
87 views
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
<a ...
0
votes
0answers
29 views
Problems installing ruby bundler gem
I'm having trouble installing the bundler gem on a Debian server.
I've got rubygems 1.3.7-3.
sudo gem install bundle
Successfully installed bundle-0.0.1
1 gem installed
Installing ri documentation ...
0
votes
1answer
15 views
Determine flags used during 'configure' step of an installation after the fact
So in my case, I'm upgrading a Ruby install from a low patch level to a higher one. I wanted know exactly what flags, if any, were used in the previous ./configure step of the installation process.
...
0
votes
0answers
13 views
rvm “default” version implementation
According to the official site (http://beginrescueend.com/rubies/default/), the "default" setting of rvm controls the ruby version that is loaded "when you open a new terminal shell".
I am wondering, ...
0
votes
0answers
21 views
rvm doesn't revert back to system ruby
I'll let the shell log explain itself:
root:~# rvm current
system
root:~# which ruby
/usr/bin/ruby
root:~# rvm use 1.9.2
Using /root/.rvm/gems/ruby-1.9.2-p290
root:~# rvm current
ruby-1.9.2-p290
...
1
vote
1answer
53 views
zlib error on gem install rails after rvm version switch
(Debian squeeze)
rvm version: 1.10.0
I have just installed ruby 1.9.2-p290 using "rvm install 1.9.2" and made it default. However, I am getting this error when trying to install rails using rubygems. ...
0
votes
1answer
131 views
Cron not able to find correct versions of ruby and bundler gem
I have cron running for rails application on EC2 instance, but it fails with error -
/bin/bash: bundle: command not found
if I run bundle command with ubuntu user or sudo user that works.
I have ...
0
votes
0answers
57 views
RubyGems picking up wrong Ruby version
Trying to update gem
[root@nuuk ~]# ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
but when I do gem update --system I get
[root@nuuk ruby-1.9.3-p0]# gem update --system
Updating ...
1
vote
1answer
53 views
How do I require a resource in a Puppet definition based on an array parameter?
I have a define that looks like this:
define user::sys_user($fullname, $uid, $groups, $shell='/bin/bash', $authkey, $authkey_type=rsa) {
$username = "sys_${name}"
group { $username:
...
0
votes
3answers
40 views
how to point rubygems to use ruby 1.9.1?
[Debian squeeze]
It has been surprisingly difficult to find an answer for this.
I had ruby v1.9.1 installed (/usr/bin/ruby1.9.1), but after I then installed rubygems, it also installed ruby1.8 ...
0
votes
1answer
45 views
Which Ruby server for an app with lots of file uploads?
I'm currently building an application that will handle quite a lot of file uploads (images, so a few MB each). It'll also be handling mostly JSON requests on the frontend, behind a Javascript ...
2
votes
1answer
112 views
Unable to set nginx to serve my staging website
I'm having some troubles setting up nginx to serve my staging website. What I did is change the server_name but for some reasons it just doesn't work.
The url scheme is "domain.foo" is production, ...
1
vote
0answers
126 views
How do I get supervisord to use a user's rbenv environment?
I've daemon owned that I'd like to have system supervisor manage. The daemon has its own user and, being done up in ruby, it's own rbenv environment. The supervisord conf for the daemon:
...
2
votes
1answer
87 views
How do I add a provider for the package type in Puppet?
The puppet-rvm FAQ mentions that they didn't extend the package type because "it becomes harder to manage multiple Ruby versions and nearly impossible to install gems for a specific Ruby version". I ...
1
vote
1answer
81 views
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 ...
0
votes
0answers
55 views
Passenger Defunct Processes on Apache2 restart/ Instance reboot
I've install apache from apache2-mpm-prefork package on EC2 micro instance and compiled passenger from source code present at following link:
...
0
votes
3answers
118 views
Install ruby 1.9.2 on debian production server
I have a problem install ruby 1.9.2 on debian using rvm.
The install goes fine, and when i type
rvm use 1.9.2
then it says:
Using /usr/local/rvm/gems/ruby-1.9.2-p180
but when I type
...
0
votes
1answer
329 views
puppet dashboard fails to start
So here's the situation. I'm running Puppet on CentOS 5.7 64-bit, and on the puppet master I also have puppet-dashboard, however when I try to start it, I see the following:
[root@puptest-master ...
0
votes
1answer
86 views
Cannot require 'rmagick' despite normal installation on Ubuntu (LoadError: no such file to load — rmagick)
I have installed all the dev files (sudo apt-get install libmagick++-dev libmagickcore-dev libmagickwand-dev) as well as the gem itself (gem install rmagick), and everything installed just fine, no ...
0
votes
1answer
152 views
Ruby/Passenger stops working after update to OpenSSL
Someone has run a yum update on the CentOS box (Linux 2.6.28.1-xxxx-std-ipv4-32 #2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 i686 i386 GNU/Linux) that runs a Ruby on Rails app (Redmine) served with ...
1
vote
0answers
136 views
How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?
I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc.
My setup ...
0
votes
1answer
97 views
Monitoring queue depth of resque/resque-scheduler
I'm looking for a way to monitor the "queue depth" of my resque and resque-scheduler redis instances. Currently I am using god to ensure the resque and resque-scheduler tasks are running, and I use ...
0
votes
0answers
18 views
is it possible via ruby's Thin Server to redirect to a newer dns entry if it gets hit using older dns entries
Is it possible via Thin Server to redirect to a newer dns entry if it
gets hit using older dns entries.
Say, there is a single server with 2 dns entries A.xyz & B.xyz and we
want it to ...
1
vote
1answer
75 views
Installed ruby from source on debian, apt-get no longer works due to failed dependencies, how do I fix it?
I installed ruby from source, and everything ruby related seems to work just fine. I can't install anything that depends on ruby using apt because I don't want 2 versions of ruby installed.
After I ...
0
votes
1answer
153 views
Compiling Error of Ruby 1.9.2 on CentOS
all. I downloaded the ruby source from the offical site http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz. But I got some compiling errors when I did as the README told me:
tar -xzf ...
0
votes
1answer
221 views
Ruby via FastCGI and NGiNX?
I have NGiNX setup, and would like to be able to run sites I create in Ruby.
However my server is pretty fail, only like 250mb memory, probably less, so instead of having to run each Ruby site with ...
1
vote
1answer
135 views
rvm fails to install any ruby
RVM gives me an error during installation of any version of ruby.
Let's take for example ree-1.8.7-head
rasfast@rasfast-home:~$ rvm install ree-1.8.7-head
Installing Ruby from source to: ...
2
votes
1answer
1k views
How to install RVM for single user in Ubuntu without hosing permissions?
I'm trying to setup RVM to execute in single user mode on Ubuntu, but can't without opening up permissions make, configure etc. Any suggestions?
RVM installed via bash < <(curl -s ...
1
vote
2answers
59 views
error deploying app with Vlad, running a sudo command, to Ubuntu server
I'm a n00b when it comes to ssh, sudo and other unix things... so bear with me, here.
i've got a rails website set up and deploying with vlad via ssh already. this works fine. now i need to have my ...
0
votes
1answer
11 views
How do I install rake
sudo yum install ruby
I did this on my Amazon EC2 AMI, but I still don't find the 'rake' command. Isn't it part of this installation?
1
vote
1answer
98 views
Trouble installing Heroku taps gem using RVM
I tried to install the taps gem on my rvm, but got the following result:
larson:~ larson$ rvm gem install taps
Successfully installed taps-0.3.23
1 gem installed
Installing ri documentation for ...
2
votes
2answers
317 views
Nginx redirect loop when using proxy_pass over SSL
We are using Nginx as a load balancer for our Rails app. Since we're are moving to a multicloud hosting solution, we want our load balancer to start using SSL for every connection when it's forwarding ...