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

learn more… | top users | synonyms

2
votes
1answer
234 views

Parsing XML with ruby to display on webpage

I have an XML feed (AppDynamics API) which has an auth method (so username@customer:password format) which I want to access. I would like the XML to be parsed, preferably in XML, to extract / 'grep' ...
0
votes
2answers
229 views

Skipping a “Press certain key to continue” in a bash script

I'm installing RVM for Ruby with the following command: curl -L https://get.rvm.io | sudo su myuser -c "bash -s stable --rails" I specifically need it to be installed under that user - and it will ...
2
votes
1answer
344 views

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: ...
0
votes
1answer
124 views

securing a ruby on rails installation

I successfully used this tutorial: http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/ for ...
1
vote
0answers
275 views

Why does my long-running nohup process quietly stop processing on Mac OSX?

I have a Ruby rake process that does a whole lot of intensive data loading and manipulation. When run a against a particularly large file, the process will run for several hours (which is fine), but ...
2
votes
2answers
496 views

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 ...
-2
votes
1answer
66 views

looking for answer of Ruby coding in linux [closed]

puts ((11.to_s * 2).to_i/2), does anyone know answer of this coding? I am not aware of ruby!
0
votes
1answer
658 views

Rails app deployment challenge, not finding database table in production.log

I'm trying to setup PasswordPusher as my first ruby app ever. Building and running the webrick server as instructed in README works fine. It was only when I tried to add Apache ProxyPass and ...
1
vote
2answers
2k views

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: ...
2
votes
1answer
979 views

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 ...
0
votes
2answers
1k views

MCollective cannot load the Stomp library?

CentOS 5.5 I'm facing with this problem when restarting mcollective: # service mcollective restart Shutting down mcollective: Starting mcollective: ...
0
votes
1answer
40 views

Running application from a different directory

I currently have Redmine setup in /usr/share/redmine and I would like to keep /usr read only. I want to be able to run the application out of /srv/redmine. I am using the debian package. The location ...
0
votes
1answer
279 views

Nginx - Passenger - Rails 3.2 not responding

I am struggeling to get my rails 3.2 app running on a nginx - passenger - ruby 1.9.3 setup. here is what I already did: installed passenger gem installed rvmsudo passenger-install-nginx-module I ...
0
votes
2answers
1k views

How to install Phusion Passenger using RVM on Rackspace server?

I am getting ready to start hosting my own Ruby applications. I already have RVM installed on my production server. Now I would like to install Passenger. I have Ruby 1.9.2 set as the default. I ...
1
vote
1answer
297 views

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 ...
5
votes
2answers
232 views

maintenance/installation of ruby gems/ruby on rails on Linux in general and Gentoo

I am currently looking into Ruby/Ruby on Rails as an alternative to Python/Django. My main problem is that it is rather unclear what the best practices are when it comes to installing Ruby gems and/or ...
0
votes
1answer
121 views

Rails on Dreamhost dedicated alongside existing PHP apps

I'm a developer, and don't have much administration experience. The client wants to host a Rails 3.2 app on his Dreamhost dedicated server (running Debian) which already hosts a bunch of other sites ...
0
votes
1answer
200 views

How do I connect to MSSQL server from Linux

I need a read-only access to a MSSQL server from a Linux box (more precisely, from a Heroku Cedar stack via Rails). Is it doable?
1
vote
1answer
260 views

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 ...
1
vote
1answer
479 views

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 ...
0
votes
1answer
785 views

memory tuning with rails/unicorn running on ubuntu [duplicate]

I am running unicorn on Ubuntu 11, Rails 3.0, and Ruby 1.8.7. It is an 8 core ec2 box, and I am running 15 workers. CPU never seems to get pinned, and I seem to be handling requests pretty nicely. ...
1
vote
1answer
2k views

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 => ...
0
votes
1answer
175 views

Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting

I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra). I am facing an "issue" ...
-1
votes
1answer
267 views

Security best practices for Nginx + passenger multi hosting [closed]

I am planning to offer a free multi-hosting for a rack-based ruby framework using nginx and passenger to serve these apps. I am working on several options and I would like to ask some advice on the ...
1
vote
1answer
451 views

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 ...
1
vote
1answer
712 views

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 ...
-6
votes
1answer
151 views

how to Moniter cpu status using chef? [closed]

i try with java and ruby for moniter EC2 instance with aws sdk but not able to find any example how to moniter ec2 instacne with chef. can any one help to find example to moniter ec2 instance so we ...
0
votes
1answer
261 views

sudo ./starling start works well but sudo service starling start fails

sudo ./starling start works well but sudo service starling start fails $ sudo ./starling start * Starting Starling Server... [ OK ] $ sudo ./starling stop * Stop Starling ...
3
votes
1answer
138 views

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 ...
0
votes
1answer
637 views

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 ...
1
vote
2answers
411 views

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 ...
1
vote
1answer
139 views

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 ...
0
votes
1answer
743 views

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 ...
1
vote
1answer
1k views

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: ...
2
votes
1answer
437 views

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 ...
1
vote
2answers
1k views

Syntax error when starting Rails server, RVM could be the issue?

I am getting the following error when trying to start my Rails application in production for the first time: /var/www/railsapp/config/initializers/session_store.rb:3: syntax error, unexpected ':', ...
0
votes
3answers
2k views

cannot load such file — OpenSSL (LoadError)

I'm having an issue with an uncooperative EC2 Ubuntu 10.04 4 LTS instance. I'm trying to install a few prerequisites for a Ruby web app which has the following dependencies: require 'rubygems' ...
0
votes
1answer
75 views

Recommended way to install rubygems [closed]

There are server way to install rubygems Using apt-get: apt-get install rubygems1.8 Using rvm: bash -s stable < <(curl -s ...
0
votes
2answers
649 views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
1
vote
1answer
1k 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
344 views

How to determine if ftp/smtp is up and running using a script? [closed]

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?
2
votes
1answer
1k 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 ...
1
vote
2answers
2k 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", ...
2
votes
2answers
608 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 ...
1
vote
1answer
1k 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
1answer
434 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
206 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
217 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 ...
0
votes
1answer
248 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?
1
vote
2answers
232 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 ...