Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

EC2 Instance for Rails + Node.js App [duplicate]

What Amazon EC2 instance type should I use for my application built on Rails and Node.js, I need something that can handle many concurrent request, please adise. Note: I will use Passenger with ...
0
votes
0answers
24 views

Unicorn Ruby Server and Unix upstart scripts

I created this init.d script for unicorn according to this digitalocean tutorial. #!/bin/sh ### BEGIN INIT INFO # Provides: unicorn # Required-Start: $all # Required-Stop: $all # ...
1
vote
1answer
160 views

Gitlab 8.0.3 with Apache2 / Nginx

Background Ubuntu 15.10 Apache/2.4.10 (Ubuntu) Module dependencies are all enabled : mod_rewrite mod_proxy mod_proxy_http GitLab Community Edition 8.0.3 GitLab docroot : ...
0
votes
1answer
74 views

Rails + MySQL: How to decrease sleep process's time out?

When I run 'show processlist;', then I get so many sleep processes. result of 'show processlists' I set wait_timeout and interactive_timeout to 60 in my.cnf. But, sleep process is not died when time ...
0
votes
1answer
192 views

Use of ProxyPassReverse to change Location response header

I am implementing a reverse http proxy: proxy.example.com This will forward requests to servers based on URI: proxy.example.com/server1 -> server1.example.com When a user requests ...
0
votes
0answers
65 views

nginx - PDF not displayed in Chrome's PDF plugin when using X-Accel-Redirect to serve the PDF

I followed this guide to setup X-Accel-Redirect on my Rails application. It works fine everywhere, except for PDF files in Chrome. Only in Chrome, the PDF just does not get displayed in the built-in ...
0
votes
0answers
28 views

Minimal Rails server OS for use with High Availability (XenServer)

I have multiple XenServers configured with High Availability. I have multiple simple Rails apps that talk to each other and form a higher purpose. I have a postgresql database. Is there any distro ...
0
votes
0answers
40 views

Nginx/Passenger (with Rails, Capistrano and MongoDB replica set)

I've encountered a problem with a Ruby on Rails application that runs under Nginx/Passenger and connects to MongoDB replica set. Everything worked fine until suddenly the application stopped ...
0
votes
0answers
27 views

Domain name not working in AWS

I had previously hosted my domain in a different instance but for some reason I had to delete that instance and create a new one. I am now trying to host my domain in the new instance. So I went to my ...
-2
votes
1answer
111 views

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@<jump server>' -t user@<rails server> 'sudo su another_user ; cd /some/dir ...
0
votes
0answers
37 views

Getting vhost to work with phusion passenger

I have installed ruby and rails using rvm. I have nginx pre-installed using apt-get . I have tried installing using rvmsudo passenger-install-nginx-module but it tries to install new nginx server. I ...
0
votes
0answers
65 views

Elastic Load Balancer Nginx and Rails

Currently we use Elastic Load balancer which hits Nginx then finally rails (nginx and rails both run on the app server). The idea is to use the connection pooling functionality of Nginx. Do we need ...
0
votes
0answers
71 views

Nginx Rails production suddenly stopped working

I am using Rails with Postgres and Redis running on Nginx on Centos7. I have encountered interesting behavior today, my production server became offline for some time. The server refused connections ...
2
votes
1answer
82 views

Is it really recommended to build Ruby from source on production servers?

I've seen all over the place people using RVM/rbenv to install the most updated version of Ruby on Linux. On development, I understand that it may be OK to do this, but I can't understand why would I ...
0
votes
1answer
294 views

nginx-passenger shuts down, install double checked (updated)

I just setup a vps at Bluehost. Centos 6. For 2 days my nginx server closes and logs this: [ ... ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown) I ...
0
votes
1answer
48 views

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: ...
0
votes
0answers
63 views

Requesting HTTP API from Elastic Beanstalk causes 503 timeout on Heroku

Got a weird problem on our hands. We're calling a third party HTTP API hosted on Heroku. If we make the request through cURL locally, or we SSH into our Docker container on Elastic Beanstalk and cURL ...
0
votes
1answer
28 views

Nginx Passenger MySQL connects only locally

Fresh server, installed using the digital ocean guide here. Ubuntu 14.04 Passenger 5.0.18 Nginx 1.8.0 I can deploy my app to the server via capistrano no problem. I can also load the rails console ...
0
votes
0answers
1k views

Rails application: SocketError (getaddrinfo: Name or service not known):

I have a Rails (Spree) application running on a Debian/Apache/Passenger server. I have just randomly started seeing the following issue when trying to access the admin area. I have tried changing my ...
0
votes
1answer
400 views

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
votes
1answer
2k views

apache2 service not restarting rails ubuntu

When I type: sudo /etc/init.d/apache2 restart ... or: service apache2 restart ... I get the following error: Job for apache2.service failed. See "systemctl status apache2.service" and ...
0
votes
0answers
182 views

Looking for error log in Nginx

When I try to sign up a user on my site I get a 500 error. On my local machine I can at least see what the error is, but in production I cannot. My controller returns a 422 error when a sign up is not ...
0
votes
1answer
394 views

AWS Elastic Load Balancer HTTP health check ping not reaching Rails application server

I have just inherited a Ruby + Rails application running on AWS Elastic Beanstalk, and it is currently using TCP for the Elastic Load Balancer health check. I wish to switch to HTTP, and actually hit ...
0
votes
1answer
83 views

Running multiple Ruby on Rails web apps on a single Azure VM

I have 5 Ruby on Rails web apps and I want to run them from a single Azure Linux VM in order to save expenses. Actually I wanted to run them as Web Apps but Ruby on Rails is not yet supported. I am ...
1
vote
1answer
60 views

Nginx basic auth on specific location [closed]

I have a rails app and would like basic Nginx Basic Auth on specific location and now I am doing it like location / { passenger_enabled on; proxy_set_header X-Real-IP $remote_addr; ...
0
votes
1answer
22 views

How could I access the auto scaling DB servers because not knowing the IP address

I put the web servers and db servers in different auto scaling group. Those machines in auto scaling group will be added or removed dynamically. Therefore, I have no idea about what's the db server ...
-1
votes
1answer
49 views

How can I defend against malicious GET requests? [duplicate]

My server is getting hit with a variety if requests like the following: Started GET "/key/values" ActionController::RoutingError (No route matches [GET] "/key/values") Started GET "/loaded" ...
2
votes
1answer
158 views

Apache passenger setup - Multiple projects under same domain

I want to setup different projects under same domain with different ruby version for each app. Eg: example1.com is a main app which runs on Ruby 1.8.7 example1.com/tasks is another app which runs ...
0
votes
0answers
39 views

mina deploy not creating rails app files

I have a server with nginx and phusion passenger setup. nginx is running well. Also, phusion passenger is running (checked with passenger memory-status) I tried setting up mina, it went well noting ...
0
votes
0answers
189 views

font-awesome not displaying on Nginx, Rails 4, mina/puma

I made some changes to the nginx config file and I now cannot see any of the font-awesome fonts on FF and Chrome. The fonts are precompiled and in this directory: ...
1
vote
1answer
368 views

Nginx not responding with rails app deployed on aws ec2 instance using capistrano

I have a rails application deployed through capistrano on an aws ec2 instance and have passenger nginx installed on the server as well. Whenever I try and access my application using the DNS or the ...
0
votes
1answer
126 views

How to host staging and production on the same server [closed]

I'm new to server administration and I've recently setup my rails app on a Linode server. I followed a similar configuration to the Ryan Bates railscast on the subject. With nginx, unicorn and Ubuntu ...
0
votes
1answer
456 views

(Passenger Agent) Signal received. Gracefully shutting down

I have a rails application that I am deploying on an aws ec2 instance, this is my first time using the Rubber Gem, for which I have followed this tutorial. After removing the default nginx ...
0
votes
0answers
18 views

how can I run an existing Rails passenger app in webbrick?

Of late I have been bitten by the Passenger's unaccessible server trace logs etc. for my Rails app. So I am thinking of running my app in webbrick. But my requirement is little complicated. Assets ...
0
votes
0answers
157 views

Error starting Passenger with Apache

I am trying to configure TestCaseDB on CentOS 6.2. The Passenger and apache versions are: Phusion Passenger 5.0.10 Apache/2.2.15 (Unix) I have used this admin guide for Installation and ...
0
votes
0answers
86 views

Match subURIs to index.php file on Apache Passenger

I have the following configuration within a VirtualHost block: #Passenger config DocumentRoot /home/me/railsapp/public <Directory /home/me/railsapp/public> AllowOverride all Options ...
0
votes
1answer
105 views

Puppet-Dashboard Doesn't Load With Ruby Gem Passenger 5

Has anyone encountered problem of running Puppet Dashboard on Ruby Passenger 5? If yes does it really work with that Passenger version? I've already setup and configured the necessary files required ...
3
votes
2answers
3k views

how to disable email confirmation in gitlab in private network

Recently I installed the gitlab for my LAN. When my users are trying to create their accounts they are getting email confirmation message. Now my question is I want to disable whole email confirmation ...
0
votes
1answer
63 views

Nginx HTTPS config issue for non-wws

I need to configure nginx for one of my rails application to route some pages through SSL but facing problem with configuration. I've a SSL certificate where common name is example.com and my site is ...
0
votes
0answers
33 views

rvm losing alias value

Using RVM to manage Rubies on a server, and we set up RVM aliases, like so: rvm alias create MyAlias ree-1.8.7-p2010.01 which can be seen (and used) after we create them. rvm alias list MyAlias ...
0
votes
0answers
33 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
83 views

Using ProxyPassReverse in Apache 2.4 to run in front of Gitlab, how would I also enable User Directories in Apache?

I'm using Apache 2.4 to proxy with the gitlab omnibus package generally following this strategy from the gitlab recipes. I also want to have User Directories, like /~username using mod_userdir. To ...
0
votes
0answers
500 views

Rails app with nginx passenger: recv() failed (104: Connection reset by peer) while sending to client

Update. June 8 It's most definitely client-side. Something about JQuery/Ajax/Facebox doesn't sit well with IE10/11. Unfortunately updating all the components for JS related things to be more ...
2
votes
1answer
51 views

Posting url of rails application on FB without https replace meta tag description with “welcome to nginx”

I have a rails application deployed on an amazon ec2 ubuntu instance, configured with nginx which is working fine. The problem is when I try and post the url of the site on facebook without https ...
0
votes
0answers
260 views

ruby on rails 404 not found after deployment

I'm getting a 404 not found error after deploying my rails app. I'm using: ubuntu, nginx, capistrano, & unicorn. These are my configurations: nginx.conf upstream unicorn { server ...
0
votes
1answer
88 views

Slow mongodb on ruby on rails

I have a ruby on rails application with mysql and mongodb (mongoid framework) running. I tested a load test with siege with the setting -c 60 -r 10 on one page which have 2 stationsong find queries. ...
1
vote
1answer
1k views

EC2 Public DNS not working with HTTPS - Elastic Beanstalk URL is working

I have completely ran out of ideas to fix this issue. I've gone through just about every given solution to similar issues and nothing has worked successfully. I've successfully set up my Ruby on ...
3
votes
0answers
819 views

Coreos auto scaling with docker and fleetctl on AWS

I spent a lot of time evaluating different ways to deploy an application to the cloud (let's assume AWS for this question) in the last few weeks but couldn't really find a satisfying solution. We ...
1
vote
1answer
854 views

Error 'you must supply a name when declaring a config resouce' when deploying a rails app to OpsWorks

When moving a rails app from engine yard to OpsWorks, I am getting the following error: Error executing action `deploy` on resource 'deploy[{{ app path }}]' you must supply a name when declaring a ...
0
votes
0answers
75 views

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of ...