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)

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

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my ...
1
vote
1answer
26 views

How do I run chef recipe from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS. Some time ago I've been using chef-solo and knife to do that, but from the command line. Would that be possible to ...
0
votes
0answers
14 views

Server CPU at 100 Percent and not responding using PUMA and Nginx

My Server CPU is at 100 percent and not responding using PUMA and Nginx after one or two days. I use 4 workers. Up to now I had a look at the problem with strace, which leads to the following Output ...
1
vote
2answers
260 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 ...
5
votes
1answer
1k views

Creating a docker container from a capistrano deploy

I'm having a bit of a difficult time understanding how I can leverage my existing infrastructure code with Docker. I have a Ruby on Rails app that uses capistrano to push out deployments. I want to ...
0
votes
2answers
31 views

Nginx - rewrite root domain to point to specific Rails controller/action

I have http://foo.com and https://bar.com. When a visitor goes to http://foo.com I would like them to see the content on https://bar.com/pages/about Both domains are hosted on the same server using ...
1
vote
0answers
16 views

Rails + Nginx + SSL - Allow no-SSL on some routes

I have a rails app being served by nginx. I have ssl enabled on all routes with this conf: server { listen [::]:80; listen 80; server_name domain.com; access_log ...
1
vote
1answer
24 views

502 bad gateway errors after 68 concurrent users to website

I'm running into issues while doing some stress testing in jMeter. Essentially, we're hitting a hard limit of 68 concurrent users. As soon as the test ramps up to that number of users, we're getting ...
2
votes
4answers
65 views

how can we run multiple applications with different domain & port numbers in apache

I Have two applications running on my server with domains x.abc.com admin.x.abc.com x.abc.com is running on port 80 admin.x.abc.com is running on port 8080 I can able to access x.abc.com from ...
1
vote
1answer
1k views

How do I install Rake (Ruby on Rails)?

I want to install Ruby on Rails (I'm running a FreeBSD but don't want to use Ports for RoR) so this is a more generic unix/RoR question. Simply what is the best way to install Rake. ...
0
votes
0answers
20 views

How do I investigate latency between my app server and web server?

I have a Rails application running on Thin behind an Nginx instance. When I first start the application, requests are served in a reasonable time but after a few (identical) requests, this suddenly ...
1
vote
0answers
13 views

Nginx X-Accell-Redirect gives 502 bad gateway

I want to allow users to download files from a remote storage but I want to first auth the request through my rails app. I want to hand over the proxying of the remote file to nginx when rails has ...
0
votes
1answer
2 views

Passenger Standalone Throws Nginx 404

I have a script that starts a passenger standalone server for my rails app on boot. When I run this script from the command line it works as expected. However when its run by rc.local or crontab it ...
130
votes
8answers
127k views

How to force or redirect to SSL in nginx?

I have a signup page on a subdomain like: https://signup.mysite.com It should only be accessible via HTTPS but I'm worried people might somehow stumble upon it via HTTP and get a 404. My ...
0
votes
0answers
19 views

What Heroku setup would support 3-5 Million visitors per hour [duplicate]

A post on the Reddit front page will gather as many as 30 million to 50 million page views. All of that within 24 hours, and perhaps only within 10 to 12 hours. So, there could be 3 to 5 million ...
1
vote
0answers
13 views

Should i run Rails behind Apache/nginx?

I am slowly approaching deployment of a company internal Rails application, and am trying to find out whether i should be running the application server behind Apache/nginx in production. Currently ...
0
votes
1answer
1k views

directory not owned by the 'mysql' or '_mysql' user

I have recently installed MSQL for a Rails App. After some tinkering, I have an error starting mysql now that reads as follows: Warning: The /usr/local/mysql/data directory is not owned by the ...
0
votes
0answers
41 views

403 Forbidden error on Ubuntu + Apache2 + Passenger Rails server

Just started a server on Linode, with Ubuntu 14, Apache and Passenger. Deployed a rails app with capistrano, configured and enabled the site, but it launchs a 403 error when attempting to access: ...
1
vote
0answers
19 views

Making SSL work for a Ruby on Rails application with shared hosting [closed]

My problem: getting my Ruby on Rails app to run on JustHost shared server with SSL. The individual pieces work separately on the shared server: I have set up my app to work through the host's ...
2
votes
3answers
1k views

Proper Passenger + Apache Permissions to fix error “No such file or directory - config/environment.rb”

I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb. I have searched the web ...
0
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
2answers
2k views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
2
votes
1answer
2k views

bundler: command not found: unicorn_rails

While restarting gitlab I get this: Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install I installed gitlab ...
0
votes
2answers
1k views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
0
votes
1answer
1k views

Why is rails application always running in development mode?

I created rails application, and everything appears to be working fine, but I can't seem to figure out how to run the application in production mode. I specified in the example.com.conf (Apache ...
0
votes
1answer
19 views

AWS: By what IP address should I reference on an EC2 instance where is running Redis?

I have 2 EC2 instances - on one is the production app, on the other one is Redis. I connect from the first one to Redis. This is how I set Sidekiq: Sidekiq.configure_server do |config| ...
1
vote
2answers
6k views

“768 worker_connections are not enough” error after a fresh installation of nginx and ROR

I have a fresh installation of nginx and ruby on rails. But it gives me a '500 Internal Server Error' while testing. The error.log for my app has the following: 2014/05/01 17:27:15 [alert] 1423#0: ...
1
vote
1answer
3k views

Rails program is not being run on apache + passenger - only directory listing

I have successfully installed Phusion passenger + Apache 2 + Rails 3.1 program + git on a linux Debian 6. I ran passenger-install-apache2-module and followed the configuration instructions. I followed ...
1
vote
0answers
15 views

nginx and site.erb: tag as internal users for two different domains and two different sets of IPs

I have an nginx server and a site.erb file and two different domains (domain1 and domain2). Currently a tag (for Google Tag Manager) will be set when someone visits the sites from a particular set of ...
0
votes
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
-1
votes
3answers
2k views

Rails application only showing Nginx default page [on hold]

I am having problems with my Rails application that will use Nginx and Passenger. I've already deployed the application and have setup the nginx config file as such: server { listen 80; ...
0
votes
0answers
16 views

Configure alerts on failed Unicorn restart

Our setup looks like this: Ubuntu 14.04.4 LTS AWS Opsworks Chef 12 Monit 5.17 Ruby 2.3 Rails 4.0.8 And we managed to get everything working just nicely, yet however if for some reason, Unicorn ...
1
vote
1answer
41 views

How to get a static IP for an EC instance? Or, how to use

I am just setting our Rails app on Amazon AWS. We have 2 EC2 instances, one for the Rails app, the second one for Redis. And then Amazon RDS for MySQL. When I connect our Rails app with Redis, I need ...
0
votes
0answers
22 views

Redirection issue on nginx

-1 down vote favorite I have an issue when i try to redirect my redmine pages on nginx server. For example when I tried to redirect to the logout page the nginx server duplicate the @ip:port in the ...
3
votes
1answer
5k views

Force URL root to be HTTPS instead of HTTP for RoR application

I am attempting to run Redmine (RoR) through an Apache reverse proxy. Mongrel serves plain-text pages which Apache protects with SSL and serves to my users. The problem is that various links and ...
0
votes
0answers
20 views

location block not working properly Nginx

I have a wordpress site , let's say domain.com working on nginx . now i have a rails application running on same server with port 4567 . I want to bypass it using nginx location block in my domain.com ...
1
vote
0answers
73 views

Why do I get duplicate HSTS headers? AWS ELB, nginx, Ruby on Rails

I'm running a set of Rails servers on AWS with elastic load-balancing and nginx. When I run a security test at SSL labs (http://ssllabs.com/ssltest), it reports back: Invalid: Server provided ...
-2
votes
1answer
22 views

Staging architecture on AWS

We are using AWS (EC2-classic) and I will migrate our servers to AWS VPC, we will use AuroraDB, too. Staging ENV has 8servers (Linux Ubuntu 14.04), and on these servers are running RoR & node.js ...
1
vote
1answer
21 views

Blue/Green Testing Rails with nginx+Unicorn

I am using Unicorn as the application server in front of my web application. I want to essentially do blue/green testing by having two versions of the site running at the same time. The problem is ...
2
votes
1answer
1k views

Rails app 502 with AWS Elastic Beanstalk running Puma & Nginx

I've been able to successfully get my application running on Beanstalk with Passenger, however I've had no luck with Puma. Whenever I deploy with to a Puma stack I get 502 Errors, my log files ...
4
votes
5answers
3k views

Passenger 2.2.4, nginx 0.7.61 and SSL

Has anyone had any luck configuring Passenger and nginx with SSL? I've spent hours trying to get this configuration working as I'd like, using what few resources there are out there on the net, and I ...
4
votes
1answer
741 views

NGINX Unicorn 504 Gateway Time-out

I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: upstream app { server unix:/tmp/unicorn.rails.sock fail_timeout=0; } server { ...
0
votes
0answers
8 views

Latency on Rails App on Heroku

Images linked are screenshots of new relic status on my app. My app takes up to 12 seconds to first byte of render. In my understanding, the graph means rackspace is the reason for the application ...
10
votes
5answers
24k views

How can I set up Redmine => Active Directory authentication?

First, I'm not an AD admin on site, but my manager has asked me to try to get my personal Redmine installation to integrate with ActiveDirectory in order to test-drive it for a larger-scale rollout. ...
0
votes
2answers
93 views

Skip passenger instance stop on apache2 reload

When apache reloads cofig files all instances of passenger are stopped and must be spawned again, it creates a problem, because spawn of rails application isn't fast process. Is there any workaround ...
0
votes
0answers
12 views

How can i monitor puma using graphite?

How can I monitor puma (rails web server) in my ubuntu 14.04 server using graphite? If not graphite , what other alternative can be used ? I have tried to monitor it as a process using the process ...
1
vote
1answer
27 views

Rails + Passenger + Nignx + Modules

I try to install Rails + Passenger + Nginx + Modules but I got an error when installer start compiling Nginx: sh ./configure --prefix='/opt/nginx' --with-http_ssl_module ...
0
votes
2answers
379 views

State of the art deploying Rails applications with git

I'm looking to group together the information on the current best practices for deploying a Rails application on a server I run (rather than, say, Heroku). The application is developed by multiple ...
0
votes
1answer
85 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 ...