Ruby is a programming language that is mostly used nowadays as part of Ruby On Rails

learn more… | top users | synonyms

0
votes
1answer
78 views

Fixed ruby/mysql connection with new libmysql.dll, and broke Apache in the process

Ok so bit of background - all my development has been on a local Windows 7 machine. I had Apache with PHP/MySQL running with no issues. Been using ruby (1.9.3 and latest rails release 3.2.9) with ...
1
vote
2answers
434 views

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

How to stop basic Postfix after-queue script from BCC-ing sender?

I'm building a content filter for Postfix (2.9.3 package installed via apt on an Ubuntu 12.04 test VM) and I'm starting with a very basic Ruby (1.9.3) template and building up functionality. ...
0
votes
3answers
402 views

When to use Bash, when Python/Perl/Ruby? [closed]

What's your rationale for when to write a Bash script and when to use a more powerful scripting language (Python, Perl, Ruby, ...)? I'm finding that very simple scripts are nicer with Bash, but many ...
2
votes
1answer
144 views

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 ...
3
votes
2answers
400 views

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 ...
5
votes
1answer
401 views

Ruby installed on Ubuntu 10.10 slow on one machine but not other

I have a machine that was provisioned several months ago. RVM was used to install ruby 1.9.3-p125 as well as 1.9.3-p125-perf. When I compared raw ruby performance to another identical machine the ...
4
votes
5answers
8k views

How to fix “ruby installation is missing psych (for YAML output).” on CentOS?

After rvm installation on CentOS 5.8: [rails@localhost ~]$ rvm -v rvm 1.16.17 [rails@localhost ~]$ which ruby ~/.rvm/rubies/ruby-1.9.3-p286/bin/ruby [rails@localhost ~]$ ruby -v ruby 1.9.3p286 ...
2
votes
0answers
70 views

Apache2 + mod_ruby - how to handle all requests with one script?

I was about writing my own HTTP Server. Well I did, but conerning security issues it was too time expensive doing it on and I drove back having a unique solution with Apache2 and Mod_Ruby in-between. ...
0
votes
1answer
657 views

Error installing new rails version. Failed to build gem native extension

I am trying to build my first ruby on rails app using the following guide (http://ruby.railstutorial.org/chapters/a-demo-app#code-demo_gemfile_sqlite_version_redux) and have run into a few obstacles. ...
0
votes
1answer
186 views

Error Installing ruby with RVM Single User mode on Arch Linux

I've just installed RVM on ArchLinux x64 in single user mode via the recommended install script curl -L https://get.rvm.io | bash -s stable I've also installed all the requirements listed in rvm ...
0
votes
0answers
76 views

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

Copy a whole directory structure in Chef

I have a directory structure (sample data) that I want to copy from within a Chef recipe. It seems the only way to do this is to explicitly create each individual directory and file: directory ...
-1
votes
1answer
320 views

RVM Mixed Mode - Local Gem Installation

This thing is driving me nuts. I've installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/ When I try to do a "gem install" from a user ...
1
vote
2answers
192 views

Monit and Thin and Unfound Gems

I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem ...
1
vote
2answers
105 views

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 ...
0
votes
0answers
433 views

Variable / Attribute scope within Chef recipes and execution order

I'm trying to get the rvm_passeneger recipe to work, I seem to having problems with the order of execution and variable/attribute scope. ...
3
votes
1answer
298 views

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

Why does my namespace and class name conflict?

I have a puppet module installed that is called ntp. A node do I define by node testip { include myconfig::ntpp } and in /etc/puppet/modules/myconfig/manifests/init.pp have I class myconfig::ntpp ...
2
votes
1answer
340 views

Why isn't the variable available?

Background I would like to apply this idea of having a common class that includes all the specific info about my setup. So I have created /etc/puppet/modules/common/manifests/init.pp with class ...
2
votes
1answer
396 views

How can I set up redis to run automatically on my Ubuntu machine the way it does on mac

On my (new) mac I can use spork and redis seems to be already running. However on my Ubuntu system (11.10) I get Connection refused - Unable to connect to Redis on localhost:6379 ...
0
votes
1answer
308 views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in ...
0
votes
2answers
157 views

Missing these required gems: mongrel (but installed)

i am trying to install new plugins for redmine 1.4.4. Having copied folder and run rake db:migrate_plugins RAILS_ENV=production rake wrote: Missing these required gems: mongrel >= 0 You're ...
2
votes
1answer
192 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' ...
1
vote
0answers
86 views

Will Apache + Thin + SSE work? [closed]

We use Apache as a proxy in front of all of our applications. Will using Apache in front of Thin as a proxy server work? I am hoping to do a chat type of application like the one delivered with ...
0
votes
2answers
195 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
251 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
113 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
226 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
458 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!
1
vote
0answers
167 views

Tuning Ruby + Rails + Nginx + Passenger [closed]

I have an app that is responding pretty slowly. Most of the response time is Ruby, (800 ms per request!) however the load on the server is pretty low. It's a VPS with 4 cores and 4 gigs of ram, and ...
0
votes
1answer
484 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 ...
0
votes
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: ...
1
vote
1answer
745 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
259 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
959 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
254 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
200 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
115 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
158 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?
0
votes
0answers
220 views

Rails app running on JRuby & Trinidad / Tomcat hangs on first request after being idle

We have a RoR 3.2 app running on JRuby 1.6.6 hosted inside Tomcat via Trinidad. I've been trying to figure out for the last couple of days why every so often we would get complaints of it hanging. ...
1
vote
1answer
218 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
439 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
676 views

memory tuning with rails/unicorn running on ubuntu

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
1k 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
158 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
229 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 ...