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

Docker Compose - Adding wrong folder

I have a project folder containing my docker compose file. This references a child folder as a sub project. When running docker compose an ADD adds the docker-compose location and not the sub directory as expected. project/docker-compose.yml db: …
tgandrews
  • 155
  • 1
  • 1
  • 7
0
votes
1 answer

How to implement PushMon on Ruby site

I am looking to implement PushMon on a number of sites using Ruby Padrino. I have the following piece of code from the PushMon site. Where would I place said code. I was thinking of adding it to the controller get for session/new but then again I…
user3385136
  • 121
  • 1
  • 5
0
votes
1 answer

AWS-EC2 - Rails Passenger Page under heavy load

I have an rails app on an aws ec2 (elastic beanstalk) instance. The problem is, when i run blitz.io to test the page load, the page goes into "page under heavy load" at around 100 users. In the past i remembered that you have to change some settings…
zPrima
  • 111
  • 1
0
votes
1 answer

Nginx passenger rails

On a EC2 with ubuntu 14.04 with nginx/passenger/rails came with this log on nginx: App 31063 stderr: * ERROR *: Cannot execute /usr/local/lib/ruby: Permission denied (13) App 31065 stderr: /etc/profile.d/rbenv.sh: line 3: rbenv: command not …
dcalixto
  • 109
  • 1
  • 2
0
votes
1 answer

How to start passenger nginx, error : Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)

Application is broken in production mode and getting below error while restarting passenger and nginx. [ agents/LoggingAgent/Main.cpp:338 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown) […
0
votes
0 answers

mailjet with brimir (open source Ruby project) on debian doesn't send mail

I tired of searching a tip to be able to send mails with mailjet on my debian. I configured a dashboard for tickets (Brimir, Ruby open source plateform) Here is the link : https://github.com/ivaldi/brimir The installation was easy, and it works like…
0
votes
1 answer

How can I determine why a process is dying?

On a CentOS 6.5 server I am running a very simple HTTP listener with Sinatra that exists simply to accept POST requests and pass the payload content of the POST request to another service. I often find that the process with the PID of the Sinatra…
asdoylejr
  • 281
  • 1
  • 2
  • 7
0
votes
1 answer

ChefSpec - Coverage when testing for include_reciepe

I' am trying to write ChefSpec tests for some of our Cookbooks. One of those is including a lot of other cookbooks, to setup an Jenkins CI Enviroment. Iam wondering how other people are testing the included recepies. My "_spec.rb" looks like this in…
opHASnoNAME
  • 645
  • 2
  • 7
  • 18
0
votes
1 answer

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: NameError: uninitialized constant…
Mattisdada
  • 131
  • 4
0
votes
1 answer

ruby complains about a package being not installed which actually is installed

This question might be very unprofessional but I'm very not into Ruby and I have no clue where to start.. I used to run Jekyll which runs asciidoctor to render html pages. After a Fedora update unfortunately I just get the message $ jekyll…
frans
  • 649
  • 1
  • 7
  • 10
0
votes
1 answer

gem install does not rebuild all instances of a gem

user@sv1 [/home/user/]# env|grep GEM GEM_HOME=/home/user/.gems/2.1 GEM_PATH=/home/user/.gems/2.1 user@sv1 [/home/user/]# gem install mysql2 Building native extensions. This could take a while... Successfully installed mysql2-0.3.18 1 gem…
mhi
  • 1
  • 2
0
votes
2 answers

Starting Rails App with Phusion Passenger Standalone?

I am deploying a Rails application ( Project Fedena ) to a VPS at Digital Ocean. I can use either of mongrel_rails start and ruby script/server to launch my app with no problem. It binds to port :3000 and I can use the application as desired. The…
Ralph
  • 862
  • 11
  • 26
0
votes
1 answer

puppet defined type and creating multiple templates from 1 .erb file

I need to find a solution to this problem that I've come across. I have a hash (it's supposed to be overriden as a smart class parameter later on) that I am iterating trough in my template.erb to generate multiple File resources that I have defined…
ThreeTwo
  • 3
  • 2
0
votes
1 answer

Puppet: How to write a proper “condition and condition” statement?

I wrote a "Message of the day" Puppet module which affects all proxy servers in my company. Within the template file, I have the following "if statement": <% if @hostname !~ /^haproxy\d+/ and @hostname =~ /proxy\d+/ -%> if [ "$(cat $LBMEMFILE)" =…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

Connection refused while setting up Chef Server 11 on Ubuntu 14

I just spun up an Ubuntu 14.04 VM on HPCloud.com to practice Chef. Following this turial I setup a DNS on HPCloud, as well as set the hostname in /etc/hosts to chef-server.mydomain.com When running chef-server-ctl user-create user_name first_name…
Sam Hammamy
  • 189
  • 5
  • 17