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
5 views

docker ruby bundle invalid utf

I'am setting up docker for my rails project. I'm getting error: /usr/local/bundle/gems/bundler-1.12.5/lib/bundler/ui/shell.rb:99:in `[]': invalid byte sequence in US-ASCII (ArgumentError) from ...
0
votes
1answer
16 views

Postgres doesn't shut down properly

Here is my original error: $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? ...
0
votes
0answers
7 views

Command in Docker-container called “native” using 100% CPU

I have a server running Docker managed through Dokku. I have multiple applications running without any issues, but one have multiple times been crashing. The app is a Rails-app based on the open ...
0
votes
0answers
18 views

Installing Apache Passenger 2.2.2 module fails

I'm attempting to install a Passenger 2.2.2 module (from a gem) (Centos 6.7 + Apache 2.2.15)- attempting to install/compile this module fails as shown below: RubyGems Environment: - RUBYGEMS ...
0
votes
1answer
15 views

After commenting out virtualnameHost on passenger_vhosts.conf my apache2 is only resolving to one domain

I have to hosts (domains) that i have added on the passenger_vhosts.conf. I had namevirtualhost*:80 on my conf file and i was able to resolve for two domain, after updating my apache2 the ...
0
votes
2answers
25 views

nginx permission issue serving static file - RedHat 7 SELinux issue

This is a new installation which I followed the passenger+nginx guide. This will eventually be a rails site, but for now I am trying to get static files to serve, and am unable to figure out the ...
0
votes
0answers
21 views

Issues with a fresh dev OneOps instance

I followed the instructions here: https://github.com/oneops/setup.git and was able to bring up an OneOps instance. I am able to create a user and log-in, however I am not able to create organizations. ...
0
votes
0answers
20 views

Running Rails apps on subdomain with Apache and mod_rewrite WITHOUT VirtualHost

I am host a number of domains on Apache (Ubuntu). I am not using VirtualHost for all the domains, I am using mod_rewrite (and a custom RewriteMap to boot) to map domains and subdomains to a variety ...
1
vote
0answers
8 views

Latest GitHub source not being deployed properly by Opsworks

I have an Opsworks Rails Layer (nginx/unicorn) instance that has been running for a while, and I have successfully deployed my rails app to it many times directly from GitHub. Yesterday, I started ...
1
vote
0answers
26 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 ...
0
votes
2answers
35 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
26 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
30 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 ...
0
votes
0answers
21 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
17 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
4 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 ...
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 ...
3
votes
4answers
95 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
0answers
14 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
0answers
76 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
24 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 ...
0
votes
1answer
23 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
0answers
17 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
0answers
20 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
43 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 ...
1
vote
1answer
30 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
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 ...
0
votes
0answers
21 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
107 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
25 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
22 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 ...
0
votes
0answers
9 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 ...
1
vote
1answer
29 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
0answers
14 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 ...
0
votes
1answer
86 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
64 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
55 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
28 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 ...
3
votes
1answer
77 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
54 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
16 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
79 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
316 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
19 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
57 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
51 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
22 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
33 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
43 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
141 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 ...