Skip to main content

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

Filter by
Sorted by
Tagged with
16 votes
4 answers
6k views

Is it possible to skip .rvmrc confirmation?

We are using RVM for managing Ruby installations and environments. Usually we are using this .rvmrc script: #!/bin/bash if [ ! -e '.version' ]; then VERSION=`pwd | sed 's/[a-z/-]//g'` echo $...
Viacheslav Molokov's user avatar
15 votes
2 answers
7k views

How do I get started with Chef?

The chef documentation is pretty bad. And Google isn't helping me. Can anyone point me at a decent article or something that would help me get started? My specific issues are: How do I get a client ...
Brad Wright's user avatar
13 votes
6 answers
33k views

Gitlab: Extremely high memory consumption by ruby "bundle" process

I have a problem with my Gitlab installation running on a small Ubuntu LTS 16.04. I have to point out that I don't have much experience with Linux or Gitlab. My Gitlab installation with a few ...
mode777's user avatar
  • 231
12 votes
2 answers
31k views

How to setup Ruby and RubyGems on CentOS?

I have a CentOS 5.5 (64-bit server) I'd like to install Ruby 1.8.7 (current patch level) and RubyGems What's the best way to go about this? disclaimer: I'm a CentOS noob
macek's user avatar
  • 315
10 votes
3 answers
4k views

How to run Gollum using mod_rails and Apache in a shared hosting environment (e.g. Dreamhost)?

Gollum is GitHub's new wiki engine written in Ruby. Deployed locally it uses a Sinatra instance to provide a web interface. Is it possible to run it in a shared hosting environment such as Dreamhost ...
Kenners's user avatar
  • 113
10 votes
4 answers
11k views

Uninstall ruby from source

I installed ruby 1.9 on my fedora 13 machine from source. I want to go back and use the older 1.8.6 (which I'll install with yum), unfortunetly it appears that I can't simply uninstall my current ...
vise's user avatar
  • 235
9 votes
4 answers
6k views

How do I setup Apache with FastCGI and Ruby?

I've been reading alot of forum posts, tutorials, etc., about setting up apache under linux with fastcgi. I'm trying to run fcgi for some of my ruby development (not rails), but I figure it should ...
sdellysse's user avatar
  • 203
8 votes
4 answers
7k views

How can I execute Ruby scripts via Apache (not necessarily using Rails)?

I'm trying to get Apache to interpret my Ruby files but I don't understand how to do it. I'm not concerned with Rails right now, only Ruby. What I've found by Googling only confuses me. Any advice?
Jason Swett's user avatar
  • 1,468
7 votes
6 answers
24k 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 (2012-...
ohho's user avatar
  • 1,025
7 votes
5 answers
3k views

RVM not picking up /etc/gemrc

in a system wide RVM .... heres my /etc/gemrc --- gem:--no-ri --no-rdoc heres the system gem env GEM PATHS: - /usr/lib/ruby/gems/1.9.1 - /home/${USER}/.gem/ruby/1.9.1 GEM ...
jtzero's user avatar
  • 170
7 votes
5 answers
4k views

Ruby for Systems Administration

I've used Python, Perl and Shell for systems administration. Wondering if anyone uses Ruby for systems administration? Any pluses/negatives? I know that this question is subjective and am interested ...
6 votes
2 answers
18k views

Where is the gem command in RHEL6?

I just built RHEL 6 and I need to be able to install ruby gems, etc. I have the ruby 1.8.7 packages installed but there is no gem command anywhere? What gives?
NJ01's user avatar
  • 219
6 votes
2 answers
25k 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 "/mnt/...
Steve Bennett's user avatar
6 votes
1 answer
18k views

Which way is the correct way to pass variables to chef templates?

Looking at this official documentation: https://docs.chef.io/resource_template.html I see examples of passing variables to the Template resource that use either "{", "({" or "(" to scope the variables....
cb2's user avatar
  • 163
6 votes
5 answers
5k views

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 ...
Theo's user avatar
  • 2,865
6 votes
1 answer
1k views

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through ...
DrFredEdison's user avatar
5 votes
8 answers
8k views

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 ...
Sean Clark Hess's user avatar
5 votes
3 answers
5k views

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 ...
codykrieger's user avatar
5 votes
6 answers
4k views

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 ...
Rob's user avatar
  • 203
5 votes
1 answer
3k views

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 ...
Kami's user avatar
  • 1,444
5 votes
4 answers
4k views

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 ...
Sooth's user avatar
  • 161
5 votes
2 answers
14k views

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 ...
Wayne's user avatar
  • 428
5 votes
2 answers
484 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 ...
khaos's user avatar
  • 213
5 votes
1 answer
1k views

RPM Package a ruby project

I want to package a ruby program that I get from git into a RPM package. I have at my disposition a build server and a production server (Same OS / Same Arch). As most ruby project, mine does have ...
Spredzy's user avatar
  • 963
5 votes
2 answers
4k views

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 ...
smathieu's user avatar
  • 141
5 votes
1 answer
504 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 ...
Aaron Jensen's user avatar
5 votes
1 answer
2k views

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 ...
Andrew's user avatar
  • 3,573
4 votes
1 answer
6k views

gem install append CPPFLAGS / LDFLAGS [closed]

I can't seem to get gem install charlock_holmes -v 0.6.9.4 to work. I can hand edit the ./ext/charlock_holmes/extconf.rb and includ $INCFLAGS << " -I/usr/local/include " $LDFLAGS << " -L/...
Rob Paisley's user avatar
4 votes
5 answers
5k views

Running Ruby on Rails App on Apache + Passenger == to much memory

I'm running redmine (a RoR app) on my server using passenger / Apache 2.2. Passenger and ruby are using way too much memory. Is there a more memory effective way to run redmine/ruby? I only need to ...
Rich's user avatar
  • 945
4 votes
1 answer
611 views

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 ...
davidhq's user avatar
  • 215
4 votes
3 answers
10k views

Is it possible to use custom script for authentication with PAM?

I want to enable users to use my rails application's credentials for login to sftp account. If I understand correctly I should somehow use PAM for this. But I didn't find any info on how to do this?
retro's user avatar
  • 143
4 votes
2 answers
4k views

Changing PATH Environment Variable for all Users. (Ubuntu)

I recently compiled Ruby Enterprise Edition (REE) on an Ubuntu 8.04 server. I would like to update my PATH to ensure this new version of Ruby (found in /opt/ruby_ee/bin) supersedes the older version ...
Wally Glutton's user avatar
4 votes
2 answers
3k views

How to setup Nginx with Varnish

I'd like to see how to configure Nginx and Varnish. I'm running several PHP sites and Rack-Sinatra sites as virtual hosts across two IP's. I'd like to prevent Nginx from having to serve static files,...
arbales's user avatar
  • 527
4 votes
7 answers
643 views

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 ...
Daniel Lucraft's user avatar
4 votes
2 answers
1k views

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 ...
cat pants's user avatar
  • 2,313
4 votes
1 answer
3k 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 (Errno::...
Michael Durrant's user avatar
4 votes
2 answers
2k views

What specifically does FastCGI do (for Ruby, Java, and Python)?

If I have a server running Apache, and I install FastCGI, would that let me run Ruby and Python scripts? If Python is already installed on the server, wouldn't I just be able to add .py to the CGI ...
SJaguar13's user avatar
  • 937
4 votes
5 answers
2k views

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 ...
chutsu's user avatar
  • 165
4 votes
2 answers
2k views

How to make Chef-Server use Ruby 1.9 on Ubuntu?

I've installed Chef Server on Ubuntu 12.04 using the official instructions, which uses the "omnibus installer" that has embedded ruby 1.8.7. I'm trying to install knife-windows, but when I run gem ...
Eric Lathrop's user avatar
4 votes
1 answer
2k views

Cannot install passenger with Nginx

I have a rack application that I want to migrate from Ruby 1.8.7 + Apache + passenger to Ruby 1.9.1 + Nginx + passenger. I have made up the following script for a quick install all in one, and it ...
Luc's user avatar
  • 508
4 votes
1 answer
3k views

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections ...
yixu34's user avatar
  • 43
4 votes
2 answers
2k views

What is the best AMI to use in Amazon for a Ruby server?

I have previously installed instances of Amazon EC2 servers. I know that it takes a while to get MySQL, Postgres, Rubygems, Ruby, etc.. installed on the server. I'm wondering if there is a better ...
user avatar
3 votes
4 answers
5k views

Upgrading Ubuntu hardy to Ruby 1.8.7

My server is running Ubuntu Hardy and Ruby 1.8.6 installed using aptitude. I'd like to upgrade to Ruby 1.8.7 but, unfortunately, the Ruby package includes Ruby 1.8.7 starting from Ubuntu Intrepid. I ...
Simone Carletti's user avatar
3 votes
2 answers
235 views

Is there a bash equivalent to "some content #{foo}" with ruby?

I'm used to being able to pass variables inside strings in ruby, like so "message in double quotes #{expression_or_variable_to_run}" What's the equivalent in bash, for really quick scripting?
Chris Adams's user avatar
3 votes
1 answer
3k views

Most appropriate place for custom Puppet facts - RHEL

I'm not much of a Ruby guy, but found how to list the Ruby load path. Here's what it looks like for me $ ruby -e 'puts $:' /usr/lib/ruby/site_ruby/1.8 /usr/lib64/ruby/site_ruby/1.8 /usr/lib64/ruby/...
quickshiftin's user avatar
  • 2,195
3 votes
1 answer
3k 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 ...
Abe Petrillo's user avatar
3 votes
3 answers
628 views

What are my automation options with VMWare ESXi 3?

We have a brand new Dell 28-something-or-other that is running bare metal VMWare ESXi 3. I'm getting conflicting information on whether there's a command line console for things lke creating new VMs, ...
Otto's user avatar
  • 2,201
3 votes
1 answer
5k views

EC2 : How to assign multiple elastic IPs to a single network interface via SDK

Would anyone know how to associate multiple Elastic IPs to a single instance via the Amazon SDK ? In Ruby, I've tried to use both the aws-sdk and fog gems, which work fine for a single address, but ...
jonathanserafini's user avatar
3 votes
1 answer
2k views

How do I install rake

sudo yum install ruby I did this on my Amazon EC2 AMI, but I still don't find the 'rake' command. Isn't it part of this installation?
user42891's user avatar
  • 251
3 votes
4 answers
3k views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...
afriemann's user avatar

1
2 3 4 5
10