Questions tagged [ruby]

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

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.

499 questions
5
votes
6 answers

Scripts That Need (some) Root Access

I have a general question about system administration scripts that require "some" commands to be executed with root access, and other as a normal non-root user (ie myusername, etc.). I should mention I'm using Ruby 1.8.6 on a Linux Red Hat 4 system.…
Rob
  • 203
  • 2
  • 9
5
votes
8 answers

How can I get alerts when my site is down?

My blog is a custom ruby/rack application, and has been crashing randomly every couple of weeks. I sometimes don't notice for days, and I'd like to be notified immediately if it happens. What's the best way to do it? I'm running Centos 5.3, Nginx,…
Sean Clark Hess
  • 263
  • 3
  • 13
5
votes
1 answer

Apache+Passenger not serving the root of the Sinatra application

Since the last Fusion Passenger update, all my Sinatra applications have stopped working on the following env: Apache (2.4.17), Phusion Passenger (5.0.21). Everything was working as expected before updating the passenger middleware. The problem is,…
Kami
  • 1,414
  • 12
  • 25
5
votes
1 answer

How to configure Monit for use with Puma Ruby Web Server?

I am getting started with Monit and don't have a lot of systems knowledge. I have a Ruby app running on Puma. I want to use Monit to automatically restart Puma if it ever dies. I'm currently using the Puma provided Capistrano 2 recipe which uses the…
Andrew
  • 3,293
  • 8
  • 32
  • 35
5
votes
4 answers

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to keep my secret files out of the git repository.…
5
votes
1 answer

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 older machine smoked them. For…
Aaron Jensen
  • 203
  • 1
  • 8
5
votes
2 answers

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 Ruby on Rails projects on a Linux with a general…
khaos
  • 213
  • 2
  • 8
5
votes
3 answers

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 to manage a Rails app's Unicorn master process.…
codykrieger
  • 187
  • 1
  • 7
5
votes
2 answers

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 requests to frontends, since some of them might…
smathieu
  • 141
  • 1
  • 6
5
votes
5 answers

Is it possible to install precompiled Ruby versions with RVM?

I'm using EC2 and sometimes launch servers that I want to use only for a short time. Usually I want to install some version or versions of Ruby on them, and for this RVM is very convenient -- if it wasn't for the fact that it takes forever to…
Theo
  • 2,505
  • 2
  • 18
  • 10
5
votes
2 answers

how to enable redmine (ruby on rails) logging?

For some reason my RedMine install never gets any log files. Redmine is an open source project management system written with Ruby on Rails. I'm a total newbie to Ruby or Rails. Have searched the wiki, forums, tickets without any clue to this…
Wayne
  • 428
  • 4
  • 7
  • 15
4
votes
7 answers

Explain this strange environment-related Ruby performance problem

We're diagnosing Ruby performance problems on our application servers which we've managed to reduce to a simple test case. We compare performance on a machine in our development cluster to a machine in our production data centre. We used this…
4
votes
2 answers

How do I write a local test with Serverspec?

So far Serverspec is working out great. I'm testing my servers, everything looks good. Let's say I want to test my LDAP cluster via running a few LDAP commands from my local workstation, say ldapsearch. The reason I would do this on my workstation…
cat pants
  • 2,139
  • 10
  • 33
  • 44
4
votes
5 answers

How to setup a webserver to run inline ruby?

I would like to run inline ruby code embedded in some kind of html webpage. There are ruby servers around like mongrel, thin, but I just wanted to run inline ruby in html without making a so called ruby app conforming to some framework I don't want…
chutsu
  • 165
  • 4
4
votes
1 answer

swap space when installing phusion passenger

I tried to install Phusion Passenger and since I had less than 1GB free memory it recommended temporarily adding swap space with there commands: sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo mkswap /swap sudo swapon /swap Passenger installed…
davidhq
  • 215
  • 2
  • 9
1
2
3
33 34