Ruby is a programming language that is mostly used nowadays as part of Ruby On Rails
1
vote
0answers
226 views
How to install libv8 using a specific version of g++? [closed]
I'm trying to install therubyracer gem for a rails project - http://stackoverflow.com/questions/13793533/unable-to-install-therubyracer-on-centos-errors-with-v8-and-gcc and i'm thinking that now that ...
0
votes
1answer
64 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
277 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
86 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
243 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
67 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 ...
0
votes
0answers
14 views
How to improve ruby gems installation speed [closed]
Every time I install a software using ruby gems it take me server minutes to install a single gems, (as compare to install package using apt).
Are there any way to improve the speed?
3
votes
2answers
174 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
370 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 ...
3
votes
5answers
5k 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
57 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
419 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
159 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
29 views
Two threads in a rails initializer file seems to not run them properly
Initially I was using one thread to listen a queue from amazon and works perfectly.
aws.rb
Thread.new do
queue1 = AWS::SQS::Queue.new(SQSADDR['my_queue'])
queue1.poll do |msg|
...
...
0
votes
0answers
62 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 ...
0
votes
2answers
1k 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
196 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
143 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
77 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
254 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.
...
2
votes
0answers
204 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
317 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
230 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
226 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
191 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
123 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
152 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
70 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
165 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 ...
0
votes
0answers
270 views
Ruby: High CPU usage
Im getting that alert (Linode server) every couple of day.
Top shows 110% usage by ruby.
In not doing any script with ruby, but i do use Redmine and SASS on this server, how do i debug this? how i ...
2
votes
1answer
176 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
96 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
156 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 ...
0
votes
2answers
276 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
63 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
144 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
355 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: ...
0
votes
0answers
102 views
500 => Net::HTTPInternalServerError [closed]
500 => Net::HTTPInternalServerError for http://www.chhattisgarh.bsnl.co.in/(S(hbguo54515o2zbe2p3ndyqut))/directory_services/AreaWiseSearch.aspx?Area=04
for
require 'rubygems'
require 'mechanize'
...
1
vote
1answer
514 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
613 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
317 views
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
I want to run mysql server, but every time I've got error same as the title.
When I see my.cnf file, the socket is in /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock.
Should I rewrite the the ...
0
votes
1answer
38 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
233 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
874 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
227 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 ...
4
votes
2answers
168 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
99 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
107 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
165 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.
...