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
2 answers

Ruby: Does it make sense to use REE with Unicorn?

I am trying to figure out the optimal server stack for running Rails. As of now, nginx + unicorn seems to be the best approach. However, some folks have suggested running the REE interpreter instead of Ruby plain. Would nginx + unicorn + REE be the…
Miko
  • 1,759
  • 4
  • 22
  • 28
0
votes
1 answer

Suppress PHP Headers running cgi PHP from Ruby

I originally posted this on StackOverflow and it was suggested that I try posting this here because, "It might be something like the configuration in CGI is different than the configuration for your user." Having said that, here is my original…
Matthew J Morrison
  • 165
  • 1
  • 1
  • 8
0
votes
1 answer

Unable to configure Ruby with readline

1) ./configure --prefix=$HOME/.packages --with-readline-dir=$HOME/.packages 2) configure: WARNING: unrecognized options: --with-readline-dir I am trying to setup the most up-to-date version of Ruby on my webhost (I do not have sudo access). Line…
b_d
  • 101
  • 1
0
votes
3 answers

Installtion problems in ruby

I had ruby in my Red hat linux pc. I manually deleted the folders of ruby in /usr/lib and /usr/bin. Now when I try to install ruby again it says it conflicts with some files which does not exist. rpm -i ruby-libs-1.8.6.111-1.i386.rpm file…
Vidya
  • 347
  • 1
  • 6
  • 19
0
votes
5 answers

Multiple rack apps on nginx + passenger, one as root, the other not...config

So I've got two apps I want to run on a server. One app I would like to be the "default" app--that is, all URLs should be sent this app by default, except for a certain path, lets call it /foo: http://mydomain.com/ ->…
None
0
votes
2 answers

rb_sys_fail_path_in(rb_file_s_rename, (filepath1, filepath2)- errno == 0 error when running a newly installed version of chef

I have 1 box that seems to not want to run chef, while I have 5 other identical boxes that are working just fine using the same rhel and chef versions. On the non-working box, Chef runs correctly when the runbook is empty, but it fails when I add…
0
votes
0 answers

Ubuntu 22 need to have <1.14 nginx to install Passenger Phusion for Ruby app server

I'm trying to install Phusion Passenger but NGINX required is <1.14. For Ubuntu 22 the default is 1.18.X Need to have a slightly older version on the OS. thanks -R
BostonAreaHuman
  • 141
  • 1
  • 5
0
votes
1 answer

AWS ElasticBeanstalk: Early termination of worker [puma] Loading development - gems?

I'm currently upgrading rails from 6 to 7 and so had to upgrade my eb platform-version as well (to run ruby-3.0). Now puma isn't able to start and always looping through: [13033] + Gemfile in context: /var/app/current/Gemfile [13033] ! Unable to…
0
votes
3 answers

How to mark all packages under dev-ruby/ with keywords "~amd64" in portage?

I would like to use the ~amd64 test branch for dev-ruby/* packages.
Cheng
  • 741
  • 2
  • 9
  • 16
0
votes
0 answers

Extra trailing slash when re-directing www to non-www

This is my current configuration: server { if ($host = www.mywebsite.com) { return 301 https://mywebsite.com$request_uri; } # managed by Certbot if ($host = mywebsite.com) { return 301…
Dr.Kameleon
  • 101
  • 2
0
votes
1 answer

Passenger not running (Ruby on Rails + Nginx)

My AWS instance was working fine with my app. But, today, the server was down without memory ram. Then I run: sync; echo 1 > /proc/sys/vm/drop_caches sudo service nginx start After that, ram memory consumption is ok, but the app not. I'm running a…
Diego Somar
  • 101
  • 5
0
votes
1 answer

Why are cron jobs not being logged by rsyslog on Debian 10 buster?

(I figured this out, it was multiple problems...I'm leaving this as is and explain the process I took to resolve in my answer to this question) I'm working on a simple Ruby script that runs as a cron job. I'm using Visual Studio Code and the…
David Mackey
  • 697
  • 2
  • 15
  • 30
0
votes
0 answers

Getting 502 response upstream prematurely closed connection while reading response header from upstream on elastic beanstalk using Nginx + puma

I'm getting this error in log files. it happens when a person reloads page many times. other than that website is working fine. I'm using elastic beanstalk with Nginx + Puma. upstream prematurely closed connection while reading response header from…
0
votes
2 answers

Why is curl failing to download from cache.ruby-lang.org when ping works?

I have an issue similar to this: Wget, Curl, Yum Fail but Ping works - CentOS 5 In my case, I have 2 Ubuntu 18.04 servers which are failing to download from cache.ruby-lang.org: curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.bz2 -v …
afarley
  • 213
  • 2
  • 9
0
votes
1 answer

Is it possible to forward 127.0.0.1:port to publicip:4567?

I have a ruby server running , based on the following repository https://github.com/BuffaloWill/oxml_xxe I am running Ubuntu without vnc installed. I tried to access the server via my public ip and couldn't proceed with it. I also searched for the…
Joel Deleep
  • 145
  • 1
  • 1
  • 8