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

Strange request every 2 seconds from local IP (127.6.205.1), which overflows logs (OpenShift)

I get a strange request every 2 seconds from 127.6.205.1. My production.log (Ruby on Rails) file looks like so: > ... I, [2015-01-16T15:05:23.491062 #79682] INFO -- : Started GET "/" for 127.6.205.1 at 2015-01-16 15:05:23 -0500 I,…
dortonway
  • 121
  • 1
2
votes
1 answer

Rails - Nginx not caching images

I've got a VPS where I'm running my Rails app using Nginx and Unicorn. I was successful to add expires headers to JS and CSS files, however I cannot force Nginx to cache images as well (according to YSlow and Google PageSpeed Insights). Here's my…
kellins
  • 25
  • 4
2
votes
1 answer

How to tell how Apache might be broken and preventing the ruby passenger module from installing

I'm installing a ruby on rails application to a Ubuntu 14.04 server. As part of it, I need to install the passenger module for Apache. When I go to run the "passenger-install-apache2-module" I receive a message that "Your Apache installation might…
RedLee
  • 23
  • 1
  • 4
2
votes
1 answer

File descriptor limit in nginx/Passenger app

We're running a Rails app in Passenger 4.0.45 and nginx 1.6.0 (installed by Passenger installer) running on Ubuntu 14.04. Under heavy load Passenger restarts all of the application processes. After enabling passenger debug logs, I found "Cannot…
Robin Daugherty
  • 501
  • 5
  • 7
2
votes
1 answer

Apache dispatch.fcgi doesn't get interpreted with Passenger

I've installed passenger as ruby gem. I've added following to /etc/apache2/apache2.conf LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so PassengerRuby /usr/bin/ruby PassengerRoot…
Jakub Arnold
  • 1,744
  • 10
  • 26
  • 33
2
votes
1 answer

All Passenger processes suddenly hang - backtrace indicates reading POST data?

I've been having problems with my nginx/Passenger server where requests appear to be getting stuck, any subsequent requests don't complete, the queue gets up to its max, and the site starts serving out 503s. I have to restart nginx to get it going…
jb_314
  • 161
  • 6
2
votes
1 answer

Passenger Module Fails On AWS Gem With 'Class Variable Name' Error

Opening Disclaimer: I'm all kinds of newb to the technologies involved in this question. But the Googles, she no yield-a the fruit. I'm trying to deploy a Rails app into production. This app works fine using WEBRick. I am also using the AWS gem to…
2
votes
1 answer

Redmine won't start after move

I met trouble with redmine(or ruby configuration) when move from one server to another redmine@dirty:~/www$ ruby script/rails server webrick -e production /usr/local/rvm/gems/ruby-2.0.0-p353/gems/mysql2-0.3.14/lib/mysql2.rb:8:in `require': Incorrect…
ruX
  • 71
  • 5
2
votes
1 answer

Website offline message when server is unreachable

Is there a way to display a website offline/maintenance message to users who try and visit a website where the physical server is offline. The scenario: We have multiple client websites running at their site on their server. Sometimes they need to…
2
votes
1 answer

When does Linux run out of memory?

I'm trying to establish why a process keeps unexpectedly stopping, and one possibility is that the server is running out of memory, but I'm not sure I understand memory and Linux properly. Take the following output from the free command (taken from…
2
votes
0 answers

How to setup cross domain rules in discourse?

So i use the following page to gather information from the user and send it to forums.awake-gaming.com/posts for discourse to make a post for me . Url of page : awake-gaming.com/join-us.html Url, where i send the information :…
2
votes
0 answers

Deploying sinatra app on rails app sub uri using( unicorn and nginx)

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail_timeout=0; } server{ listen 80 default deferred; #server_name localhost; …
2
votes
2 answers

Rails production Ubuntu Server

With Rails 4 and Ruby 2.0, is it still necessary to install Phusion Passenger? It is my understanding that the purpose of Passenger was to manage memory leaks which were present before Ruby 2. If this was not the purpose of Phusion Passenger,…
2
votes
1 answer

setup Nginx, uwsgi for RAILS app on non-root location

I've set up and run a RAILS app (graylog2), and the below config made it work for root location: server { server_name www.mydomain.com; location / { gzip off; uwsgi_modifier1 7; include uwsgi_params; …
HVNSweeting
  • 534
  • 2
  • 10
  • 17
2
votes
1 answer

Unicorn error while hosting a Rails app with NGINX

All of a sudden my app stopped working and these are the last lines I am getting from unicorn.log unicorn worker[0] -D -c /home/deployer/apps/myapp/current/config/unicorn.rb -E production: relocation error: /lib/x86_64-linux-gnu/libssl.so.1.0.0:…
Darme
  • 253
  • 4
  • 11