Tagged Questions

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.

learn more… | top users | synonyms

-2
votes
0answers
29 views

two applications (ruby and php) on same url [closed]

I have two applications. One is PHP and the other is Ruby. I have only one domain (www.example.com) and I want both these apps accessible on same domain but with different URLs. For example suppose ...
-2
votes
0answers
16 views

what to do after creating mechanize action and parsing the table and storing in databse how to check it in controller and view. (ROR)

i created mechanize action and parsing the table and storing in database in folder called datahold now how to check it in controller and view. (ROR) mechanize action require 'rubygems' require ...
0
votes
0answers
7 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
45 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 ...
-4
votes
0answers
95 views

Using an old P4 as a web server [closed]

I have an old P4 that has been getting too much dust lately, and a shared hosting account whose provider forces me to stick with PHP5.3.10 (now that PHP5.3.13 and PHP5.4.3 have been released). There's ...
1
vote
0answers
19 views

For AWS, how do you set tags to a resource with the ruby aws-sdk? [migrated]

I'm pretty new to using Amazon's ruby-sdk (gem install aws-sdk), and am stuck trying to simply create a tag for a snapshotted resource. Here's what I'm doing: ec2.tags.create(:resource_id => ...
-2
votes
1answer
44 views

ROR Server without ruby?

I'm noob in ror, unix and other such things. What I have: Server A (ubuntu) with ROR application on it. Server B (ubuntu) - new server on wich we should move. What should I do: Install all ...
0
votes
2answers
48 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
71 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
26 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
50 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
76 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 ...
0
votes
1answer
88 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
78 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
26 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
31 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?
-3
votes
0answers
38 views

How to learn Ruby as a system administrator? [closed]

As a system administrator, I want to learn ruby and use it apply to my enviroment...Now I use bash shell, and sometimes shell can't meet my needs
0
votes
0answers
55 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
37 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 ...
0
votes
0answers
72 views

Django and Ruby on Rails - What is more mature in terms of security and ease of use? [closed]

I am currently in the decision making process for a CMS system that does not depend on PHP out of security reasons and for personal taste. Basically for me it comes down to the technical and security ...
0
votes
0answers
32 views

Rails Initialisation taking several minutes on EC2 Micro, MySQL + Ruby 100% CPU

As stated, after successfully performing cap deploy, and then reloading my SQL free site root (it's just a splash page at the moment), the server locks up seemingly spawning a new Rails process. ...
0
votes
1answer
55 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
0answers
29 views

Twitter Error: “Object reference not set to an instance of an object.” [closed]

I'm thinking that this question might be inappropriate here, so please forgive me for asking, but after making some changes to my Twitter account settings, everything I do -- log in, recover password, ...
0
votes
1answer
122 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
115 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
54 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
86 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
44 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 ...
0
votes
0answers
83 views

Own simple nrpe plugin: NRPE: Unable to read output

I have written an ruby plugin for nrpe but it's not working properly. I have written this plugin to check some backup files on a remote ftp server. When I try to execute the plugin from my nagios ...
1
vote
1answer
99 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 ...
-5
votes
1answer
68 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
74 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
44 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
77 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
140 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
0answers
49 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
206 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 ...
0
votes
1answer
77 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: ...
1
vote
1answer
67 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
258 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
367 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
35 views

Recommended way to install rubygems

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

Bitnami rubystack how do you get started? [closed]

I installed BitNami Rubystack 3.2.1 on Mac, loaded up the url and it works. So i created a file called test.rb with <% puts 'test' %> as the contents but this is what i get back in my ...
0
votes
0answers
71 views

Ruby 1.9.3-p0 on Dreamhost PS

I'm tinkering with Dreamhost PS (VPS) and wanted to know if people had experience upgrading the standard Ruby 1.8.7 to Ruby 1.9.3-p0? I don't really want to use RVM unless I have to but it maybe that ...
0
votes
2answers
52 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
276 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
30 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?
2
votes
1answer
172 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
170 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 ...
1
vote
2answers
193 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 2 3 4 5