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

Is it possible to specify the same availability zone as my EBS storage when creating a new EC2 instance?

Right now I have an EBS storage volume in the us-east-2b availability zone. However, I have some code that is automating the process of creating an instance and it's using us-east-2 as its availability zone. The problem is that the instance seems to…
LewlSauce
  • 151
  • 6
0
votes
0 answers

Failed to run multiple Rails apps with Unicorn + Nginx on single AWS EC2 Instance

I know this issue has been discussed several times but I had no luck and I couldn't fix the issue. I am going to run multiple Rails apps on AWS EC2 Instance with Unicorn and Nginx. I could run one rails app on mydomain.com So the project will be on…
0
votes
1 answer

Puma & NGINX upstream timed out (110: Connection timed out)

Accessing Puma app running with systemd service behind Nginx proxy results in the following error in nginx error.log: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 1.2.3.4, server:…
Ilya Cherevkov
  • 153
  • 1
  • 1
  • 7
0
votes
1 answer

any way to run passenger-status --show=requests without being root?

Periodically in production we get these ruby processes that hang up. I just discovered passenger-status --show=requests Which gives me exactly what I want. I want to write some code to build out a super admin panel that will let me click on…
user1130176
  • 173
  • 1
  • 10
0
votes
1 answer

Bind to slapd ldap server using uid instead of cn

I'm trying to connect to an LDAP server running slapd, using the net_ldap ruby gem. I'm able to perform the bind action using the cn of the user, but I need to use the uid. The LDAP server was created by ClearOS and is otherwise untouched, standard…
AJFaraday
  • 101
  • 4
-1
votes
2 answers

Install ruby by rvm

I try to install ruby 2.1.1 by RVM and I receive following error: vmamaev@vmamaev:~$ rvm install ruby-2.1.1 ruby-2.1.1 - #removing src. Searching for binary rubies, this might take some time. No binary rubies available for:…
vmamaev
  • 1
  • 1
  • 3
-1
votes
2 answers

rvm doesn't install in centos without root privileges

I trying to install RVM using deployer user that doesn't had root privileges ant I getting this error: bash: line 439: ./scripts/install: Permission denied Any help? Thank you!
Rodrigo
  • 179
  • 3
  • 12
-1
votes
1 answer

RVM Mixed Mode - Local Gem Installation

This thing is driving me nuts. I've installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/ When I try to do a "gem install" from a user account however, I get this: You don't have write…
Sam
  • 41
  • 1
  • 5
-1
votes
1 answer

Security best practices for Nginx + passenger multi hosting

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 best security practices for this type of setup in a…
devnull
  • 188
  • 1
  • 8
-1
votes
1 answer

Passenger 'premature end of script headers' error

I really need help debugging an error I'm getting with Passenger on Apache. I've just made a fresh install of Ubuntu 10.4 and have Apache, Ruby and Passenger installed. I'm trying to run a simple rack app but keep getting this error in my Apache…
fatnic
  • 101
  • 2
-2
votes
1 answer

How BCC works in Postfix

I'm trying to use postfix feature content_filter like: my_script unix - n n - 10 pipe flags=Rq user=filter argv=/usr/local/bin/my_script.py -f ${sender} -- ${recipient} And my question is, how I can check BCC…
-2
votes
2 answers

Clone ec2 instance with all things installed

I received a amazon email saying that i have to terminate my instance because of attacks but worked really hard to install and setup everything on the instance. So how can i create another instance with the stuff that i installed on the…
dcalixto
  • 109
  • 1
  • 2
-2
votes
1 answer

How do I SSH through a jump server into a Rails console?

I'd like to have a one-liner for this. When I use the following command: ssh -o ProxyCommand='ssh -W %h:%p user@' -t user@ 'sudo su another_user ; cd /some/dir ; RAILS_ENV=production bundle exec rails console' I end up on…
Matt Lins
  • 3
  • 3
-2
votes
3 answers

Can I safely uninstall Ruby?

I wish to remove non-critical packages to limit exposure to potential security vulnerabilities. I never use Ruby. Does removing Ruby will increase security or break other parts of the system ?
boblapointe
  • 125
  • 1
  • 3
-2
votes
1 answer

shift a localhost site from webrick localhost:3000 to apache2 passenger localhost/redmine or redmine.localhost

I have installed application called REDMINE on my localhost, using ruby on rails. It is accessible webrick script through localhost:3000, on my PC. Now I want to shift to apache2 passenger, I tried everything. Every possible link of redmine, but…
rathin2j
  • 9
  • 3
1 2 3
33
34