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.

498 questions
0
votes
1 answer

Ruby gems issue on Openshift origin on fedora 20

I meet some problem when checking bundle dependency on cd /var/www/openshift/broker bundle --local This is the error message, Bundler could not find compatible versions for gem "activesupport": In Gemfile: openshift-origin-controller (>= 0)…
0
votes
1 answer

Capistrano deployment system, upgrade or migrate?

I'm using Capistrano to deploy a moderately complex web application built with Rails and some custom frameworks. There are about 15 roles and 30 hosts in the deploy list. For some unknown compatibility issues with existing tasks, I am pinned to…
lee
  • 599
  • 3
  • 7
0
votes
1 answer

Why don't RedHat 5.x compiled Ruby-binaries work on Fedora 17?

I have compiled Ruby 2.0.0p247-binaries on a RedHat Enterprise Linux 5-system. When I require 'net/https' on this same system, everything is fine. The binaries have been installed on a common application repository however and when I try to execute…
Laurens
  • 115
  • 3
0
votes
1 answer

Staging and Production versions of same Monit job

I have monit configured to monitor a job for the production version of my application: # in /etc/monitrc: include /etc/monit/delayed_job.my_app.production.monitrc # in /etc/monit/delayed_job.my_app.production.monitrc check process delayed_job with…
James A. Rosen
  • 511
  • 3
  • 9
  • 19
0
votes
1 answer

chef remote_file is throwing Encoding::UndefinedConversionError

I have the following in a chef recipe: remote_file '/tmp/zint-2.4.2.zip' do source 'https://s3.amazonaws.com/mybucket/zint-2.4.2.zip' checksum '4dc28641ef79957e9d3f0904a5d56472ef1d66f8529e3deda25537d890a6f8f3' mode '0664' action…
Josh Nankin
  • 722
  • 12
  • 27
0
votes
1 answer

Cannot set postgres user password

Trying to install PostgreSQL with Ruby on Rails with Nginx on CentOS 6.5 using the following guide: http://karolgalanciak.com/blog/2013/07/19/centos-6-4-server-setup-with-ruby-on-rails-nginx-and-postgresql/ After install I went to configure the…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
0
votes
1 answer

Trouble setting up Ruby with Nginx on CentOS 6.5

Following the instructions here: https://www.digitalocean.com/community/articles/how-to-deploy-rails-apps-using-passenger-with-nginx-on-centos-6-5 I get to the point of "Use vim /etc/init.d/nginx to create the start/restart/stop script for nginx"…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
0
votes
2 answers

How to debug Repository.fetch_changesets runned from ./script/rails runner

For some time I have been updating changesets manually on server with following command's: $ cd /custom/www-data/ $ source /custom/www-data/.rvm/scripts/rvm $ ./script/rails runner "Repository.fetch_changesets" -e production fatal: bad object…
vskubriev
  • 686
  • 9
  • 15
0
votes
1 answer

Should I install ruby as root or user?

I'm not sure which option to take. I'm installing ruby on VPS. My options: Install ruby from ubuntu repository Install RVM Install RVM as user Install RVM as root I've 1 user VPS, that handles apache/php/python projects. I'm learning ruby, so I…
0
votes
1 answer

wants to provide password to tightvnc server by using script

I am installating tightvnc server on my ubuntu machine by using ruby script my script contain following: #!/usr/bin/ruby env `sudo apt-get --force-yes -y install tightvncserver` `printf "%s\n%s\n" "demo123" "demo123" | vncserver :1` I used…
Pradeep Gupta
  • 387
  • 2
  • 5
  • 18
0
votes
1 answer

rvm ruby install failing setting paths

I've never used Ruby before so this and the surrounding terminology is new to me; I'm only doing the install so I have a base to run a specific application. I need Ruby 1.9.3, as I understand it I should be using RVM as it'll make things less…
Darren Beale
  • 101
  • 4
0
votes
0 answers

redmine in subfolder issue (Apache, mod_passenger, Ruby + Drupal site in main folder)

I have Redmine in subfolder /var/www/redmine and Drupal in folder /var/www/ When I go to URL mysite.com/redmine, Redmine shows ok, but mysite.com/redmine/login is (over)handled by Drupal. Apache config is as follows
0
votes
1 answer

Nginx, Passenger, Rails serving static files but not running app

I've seen other similar questions but none with satisfactory answers, so here goes. I've installed Ruby, Rails, Nginx and Passenger and tried to configure it to all work together. Here is the relevant part of /opt/nginx/conf/nginx.conf server { …
Josh
  • 83
  • 1
  • 9
0
votes
0 answers

Using Ruby on share web hosts

We are developing a Wordpress theme and we are going to publish it on themeforest.com. We are using Sass(scss Syntax) as our CSS Preprocessor and we need to compile it on server side. We have two solutions: Use phpsass which is a php script(but it…
Parhum
  • 109
  • 2
0
votes
1 answer

Why is cron using a different Ruby than my user and how to fix it?

I have a cron job that is a Ruby script. The problem is that the ruby executable is different than expected. Ruby was installed from source so it should be the new global default. $ ssh root@example.com root@example.com$ ruby -v ruby 2.0.0p247…
Andrew
  • 3,453
  • 9
  • 33
  • 36