Questions tagged [ruby-on-rails]

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.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
5
votes
2 answers

How to decide the optimal number of ruby thin/mongrel instances for a server, number of cores?

We are trying to deploy mongrel instances on a machine. What is the optimal number of mongrel instances for a server? Since an instance can handle concurrent connections, I do not see any benefit in starting more than 1 per core. Any more than…
Amala
  • 529
  • 2
  • 14
5
votes
2 answers

how to enable redmine (ruby on rails) logging?

For some reason my RedMine install never gets any log files. Redmine is an open source project management system written with Ruby on Rails. I'm a total newbie to Ruby or Rails. Have searched the wiki, forums, tickets without any clue to this…
Wayne
  • 428
  • 4
  • 7
  • 15
5
votes
2 answers

Apache mod_proxy to another server

I am using the proxy_balancer in Apache2 to proxy requests to a Rails application to my rails server on the port the application is running on. This is how its set up... Rails Server Mongrel running on port 8000, when accessing the url directly to…
trobrock
  • 237
  • 2
  • 9
4
votes
2 answers

Multiple Rails sites using Passenger and VirtualHosts?

What I am trying to do is run multiple Rails apps from a server machine at work. We dont have multiple hostnames for the box. We want to host some rails apps on it as well as our php apps. Currently users can connect http://computername/app/. How…
4
votes
2 answers

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 Ruby 2.2.1p85 NGINX 1.4.6 Supervisor (for running /…
4
votes
3 answers

SSL/HTTPS help with regards to Mongrel?

I have been looking all over and either I can't find anything or I can't find anything that works... so here I am. How can I go about setting up SSL/HTTPS with regards to Mongrel? Thanks in advance!
Tom
  • 161
  • 4
4
votes
0 answers

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 have an imho very standard setup: Rails app Sidekiq…
4
votes
1 answer

Request timeout issue with nginx, unicorn and rails

I have an application in rails and it runs unicorn in production. There are some requests that take too long to process. I have configured the server to increase the timeout, so these request work correctly. The problem is that when the request…
Daniel Cukier
  • 823
  • 1
  • 10
  • 18
4
votes
1 answer

Instances slow when connected to AWS load balancer

I have setup 5 t1.micro EC2's behind an AWS load balancer. All the instances slow down once they are connected to the LB. Eight out of 10 requests takes more than 30s even when I do the requests directly to the instances (bypassing LB). The CPU load…
4
votes
0 answers

Rails 4 Unicorn+Nginx on Ubuntu 13.04 VPS keeps crashing

I bought a years subscription at bluevm.com (found some coupon code, it was only about $15 for a whole year) to launch my first Rails Production server. I'm running Nginx with Unicorn and MySQL on Ubuntu 13.04. Once I got the initial server…
4
votes
9 answers

384 MB enough for a starter VPS?

I'm considering to rent a VPS with 384 MB memory. It would run on CentOS and would have cPanel with Apache 2 / MySQL and Phusion Passenger with nginx / sqlite. What do you think, will it have enough memory? It would serve around 10 small traffic…
James
4
votes
1 answer

Rails when served by unicorn is generating the wrong fingerprint for precompiled assets

I have a production server with nginx -> unicorn -> rails. I precompile assets, which puts assets in public/assets with a fingerprint (hash) appended to the filename. However, when a web page is requested, references to application.css and…
Whit Kemmey
  • 141
  • 4
4
votes
1 answer

Nginx, setup https

I'm trying to setup https on my ubuntu server with NGINX ver 1.4.7 and Phusion Passenger 4.0.41. I created .key and .csr using these two commands sudo openssl genrsa -des3 -out server.key 2048 sudo openssl req -new -key server.key -out…
Passenger
  • 143
  • 5
4
votes
9 answers

RubyOnRails Inexpensive Hosting Service

I am looking for a hosting service to host RoR (Ruby on Rails) applications. Please suggest hosting services where I can get an inexpensive plan. What are the best options out for hosting when you are going live with public release? Thanks.
Ramiz Uddin
4
votes
1 answer

Copy ferret index to other servers?

I've inherited a legacy rails application that I recently moved wholesale to AWS. Part of the infrastructure is a ferret index that exists on each of the ten backend application servers that build subscriber email every night. We have a large…
anastrophe
  • 5,488
  • 2
  • 16
  • 16