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)

-1
votes
0answers
11 views

How do I troubleshoot heroku Completed 500 Internal Server Error with minimal info? [on hold]

I am developing a project management app that was going well and in fact, still works well in development, but in the last production deployment I get that vague: We're sorry, but... message and of ...
0
votes
1answer
30 views

Pointing Custom Domain to Server on Nginx

I have my server up and running on an Azure Ubuntu 14.04 virtual machine. It is working great. Now I want to point my custom domain to it so that users can visit my website by going to www.example.com ...
1
vote
0answers
21 views

Visualize multiline ruby exceptions in kibana 4

I have setup the latest version of Kibana4 ElasticSearch stack. The logs are being pooled from remote app sources which are running on Ruby. I want to search for Multi Line exceptions created by ...
0
votes
0answers
21 views

Unicorn not setting ENV variables for Rails on a Droplet on Digital Ocean

I started out with the Rails Droplet, made some changes, wiped some keys, and then created my own image. I started from this tutorial: ...
0
votes
1answer
19 views

Fails to create a Cloud66 stack

I'm using Cloud66 and trying to set up a stack from my git repository. Cloud66 however returns the error: Analysis error: The space character ‘ ’ is not allowed in your database username or password ...
1
vote
0answers
27 views

Unable to deploy a rails application using eb cli

I recently updated my environments configuration to :64bit Amazon Linux 2015.03 v1.4.6 running Ruby 2.2 (Passenger Standalone). After deploying my application using eb deploy i now get an error in my ...
0
votes
1answer
39 views

nginx not passing any requests to rails 2.3 via passenger

I'm upgrading to a new linode with Debian. I installed rvm, ruby enterprise edition, passenger, nginx (via passenger), rails 2.3 lts. My app works with script/server. I got nginx to serve static ...
0
votes
0answers
11 views

Installing PDFtk on Rails Server

I would like to have full access to the PDftk command line through a web application I'm building use rails. I have not been able to find a gem able to provide full functionality. How do I install ...
1
vote
1answer
30 views

Nginx+Passenger serving assets on sub uri

I'm serving a Rails application under a sub-uri like https://projects.mydomain.com/app1/ But my assets are not loading. here is my nginx config : location ~ ^/app1(/.*|$) { root ...
1
vote
2answers
106 views

Cannot figure out NGINX / Puma timeout 110: Connection timed out

Every so often, my rails server stops responding. I tail the logs and there is nothing—just a bunch of requests that have begun to start after the last one completed... Using Ubuntu Puma 2.15.3 ...
0
votes
0answers
12 views

Rails app deployments not showing minor view changes until apache restarted

I'm using Phusion Passenger to run a rails application using apache2 on a linux machine. I'm deploying it using capistrano3. When I perform a deployment from my local development machine, the ...
0
votes
0answers
35 views

Forcing a user on remote connection, in to a rails console, and prevent them accessing any system commands

I'm try to set up access to a system so that a ruby web dev can remote on to a system and access a rails console in order to do some tests when they're having problems with an application. They ...
0
votes
0answers
32 views

Rails 4: Restarting Unicorn + Nginx doesn't update application on Ubuntu on Amazon EC2

Every time I update my Rails application and upload the files to Ubuntu on Amazon EC2 I need to reboot Ubuntu to get the app updated. I always upload files manually through SFTP. I believe ...
1
vote
0answers
19 views

Ruby on Rails Debian best practice

I've seen in various places people using Ruby compiled from source through a cloned rbenv git repository, and then installing Rails through RubyGems to get the latest version. But, from what I know, ...
-1
votes
1answer
32 views

Looking for some useful resources to find out site and server downtime reasons [closed]

I have recently started monitoring some server instances at digitalocean, OVH and an independent provider at biznesshosting. The application servers' stacks are based on: CentOS NGINX with Passenger ...
0
votes
0answers
35 views

nginx deny POST requests to the index route

i recently noticed DDos-like attacks on my server and now i'm in charge of trying to reduce the damage they deal. They aren't that heavy, but it's enough for the poor performance my server delivers. ...
0
votes
0answers
80 views

How to optimize performace of websockets (Nginx + Socket.io)

I am sending files from a client to a remote server. My App is built with Rails + Node.js, in my server I have Nginx Installed, my server has 2 cpus, and 3.75 gb memory. I am not sure but seems like ...
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
14 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
93 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
46 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
77 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
34 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
21 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
34 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
18 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
70 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
36 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
38 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
42 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
79 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
200 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
38 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
47 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
25 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
730 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
253 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 ...
0
votes
1answer
984 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
146 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
243 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
66 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
49 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
40 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
104 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
37 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
149 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
280 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
100 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
363 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 ...