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
vote
1answer
727 views

Apache proxying to Unicorn server times out, how to avoid?

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends ...
0
votes
0answers
5 views

Staging nginx/rails via unix socket proxypass? [on hold]

I've followed this tutorial: http://blog.andolasoft.com/2013/06/how-to-configure-rails-application-with-puma-and-ngnix-on-centos.html And have my rails app running via my server ip on port 3000...if ...
0
votes
2answers
710 views

Default File Permissions (Passenger, Rails, Ubuntu Server)

I've deployed a Rails application that is using page caching and is run via Passenger on Ubuntu Server. Rails caching simply uses Ruby's File.open to write the cached files. Unfortunately these files ...
0
votes
1answer
16 views

What's the current, “correct” way to bundle gems for a Rails app with system-wide RVM-installed Ruby?

I got ruby installed system-wide by doing: \curl -sSL https://get.rvm.io | sudo bash -s stable and then: sudo /usr/local/rvm/bin/rvm install 2.0.0 I'm still not positive that was actually ...
0
votes
2answers
399 views

lighttpd fastcgi unix bind error

I am trying to configure Lighttpd to run Redmine using FastCGI. I have added the following code to my standard lighttpd.conf: $HTTP["host"] =~ "^foo.bar.com$" { server.document-root = ...
-1
votes
0answers
12 views

nginx try_files with different request format

I'm using Rails page caching system with a file store and a nginx configuration to serve cached files before asking rails to deal with the request. My issue is that for the same URL, i can accept ...
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
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
1
vote
0answers
19 views

Crond stopped sending e-mails for no apparent reason [duplicate]

I have a cron job that I want to run just once a day (executes a rake task), but while I'm testing it I have it set to run every 5 minutes. It was running perfectly fine this morning and sending me ...
0
votes
2answers
332 views

Nginx + Passenger = Slow response

I'm running nginx 1.0.4 with Passenger 3.0.11 and Rails applications and I've noticed that on every request I made, it takes about 5 seconds to respond for the first request, if I reload it, after the ...
0
votes
1answer
31 views

Nginx 403 forbidden error after moving wordpress files to a different location

I had Wordpress working inside a Rails application using fastcgi. Now I'm moving everything around so that it can be accessed at /blog in production. I moved the wordpress files and updated the nginx ...
2
votes
4answers
596 views

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 ...
3
votes
1answer
1k views

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail. I'm trying to ...
1
vote
2answers
69 views

Deploying Rails using Git

I've been learning Rails for the last few days and during this period, I've tested out Heroku and it's great to just do a "git push heroku" and the entire application is up and running. The problem is ...
0
votes
1answer
44 views

mysql.sock error when deploying with AWS Ubuntu and RDS

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Rails.root: /opt/deployment.myproject/releases/20140805050704 I've spent the better part of 3 days trying to ...
0
votes
0answers
9 views

unicorn capistrano not starting

Hi I am deploying my rails application in VPS and I have followed https://coderwall.com/p/yz8cha this blog and the problem is nginx show only 500 error page , I doubt of that my unicorn is not starts ...
1
vote
1answer
2k 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 ...
2
votes
1answer
754 views

Reverse Proxy (mod_rewrite) and Rails (absolute paths)

I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example http://www.my_host.com/app_one reverse proxies to ...
0
votes
1answer
522 views

multiple PassengerRoot?

how do you define multiple passengeroot - my gemsets are different so something like this: PassengerRuby /Users/david/.rvm/wrappers/ruby-1.9.2-p290@rpgweb/ruby PassengerRuby ...
1
vote
1answer
53 views

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

Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream

I have an Nginx and Passenger setup that is proving problematic. At relatively low loads the server seems to get backed up and start churning results like this into the error.log: connect() to ...
1
vote
0answers
24 views

Splitting an application across AWS and Heroku

My application is currently 100% managed by Heroku. A few endpoints on the application depend on very slow external resources. Heroku occasionally kills these requests if they hit 30 seconds.[1] ...
1
vote
3answers
337 views

How to Update Redmine on Windows (Helicon Zoo)

Quite some time ago I installed Redmine 2.1.2.stable using Helicon Zoo feed. And it's been working great (minus multi-minute app pool warm up times). What's the best way to upgrade to the latest ...
1
vote
2answers
836 views

redmine gives 404 on static files, works fine elsewise

I have followed http://linux.mickgenie.com/how-to-install-redmine-with-cpanel/ to install redmine on my cpanel box. Got it up and running fine except that it doesn't load any static files (js, css, ...
0
votes
0answers
20 views

Rails/Plain HTML living on same server using Passenger and Apache

I'm trying to get the following to work: www.server.com: go to main directory, serve up plain html www.server.com/w: go to /w directory, serve up a php-laden wiki www.server.com/r: go to /r ...
0
votes
1answer
1k views

Nginx with Passenger setup problems

I'm trying to setup nginx webserver with Passenger support for Ruby on Rails application on Ubuntu 10.04 (on sub URI). All went fine until I tried to access the server/application from the browser. ...
1
vote
1answer
446 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 ...
3
votes
1answer
673 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
2
votes
1answer
903 views

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as ...
3
votes
2answers
777 views

How to configure Elastic Beanstalk for using Rails with Postgres?

Elastic Beanstalk has built in support for RDS. But, I want to use Postgresql with Elastic Beanstalk. Which will be the best approach for doing this?
0
votes
1answer
34 views

404 not found error on Rails app with Helicon Zoo on Windows Server

I'm trying to run Rails App with Helicon Zoo on Windows Server 2008 R2. For the test case I used Redmine 2.3 that goes with the Helicon Zoo module. Redmine has been installed successful, but it is ...
0
votes
1answer
54 views

Restart individual rails apps in nginx+unicorn

I have 15-20 independent rails applications on the same ec2 instance. The rails applications are deployed using apache + passenger with Railsbaseuri. RailsBaseURI /games <Directory ...
0
votes
1answer
415 views

nginx large file upload gives HTTP Error 413 Request entity too large in rails

I trying to build a rails application to upload large video file which will be hosted at s3.amazonaws.com server it works fine with smaller file but gives 413 Request entity too large error for large ...
0
votes
1answer
650 views

Unicorn 3 throwing tons of errors (Rails 3.0.3, Unicorn 3.0)

I just tried to upgrade to Unicorn 3.0. I changed my Gemfile and did a bundle install. When restarting my Unicorn I got tons of errors beginning with: Unhandled listen loop exception ...
1
vote
1answer
55 views

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 ...
1
vote
1answer
860 views

Problems set-up Single Sign-On using Kerberos authentication

I need for Ruby on Rail application set authentication via Active Directory using Kerberos authentication. Some technical information: I are using Apache installed mod_auth_kerb In httpd.conf I ...
0
votes
2answers
60 views

Auto start Rails project upon boot (ubuntu)

I've been searching on this for 2 days. I tried three ways: 1.Add some file in init.d Ok I have to admit I dun know how to see error log , seems promising but doesn't work 2.Try start thin server ...
0
votes
0answers
50 views

How To Get My Rails Phusion Apache App To Use The Correct DocumentRoot

enter code hereOk this is obviously a rookie mistake of some description but I have followed this to the letter and cannot get my rails app public directory to be my document root. the tutorial says ...
0
votes
0answers
22 views

can download zip file from one computer but not another

I've got a rails 4.0.5 app that creates a zip file and then sends it to the user via send_file. Per the api docs, "disposition" is "attachment" by default, the environment is configured to use ...
2
votes
1answer
147 views

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 ...
2
votes
1answer
664 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 ...
0
votes
0answers
28 views

Why postgres 9.3 table keeps losing the primary key and indexes?

In pg 9.3 database, table engine_configs keeps losing primary key (id) and indexes. Here is the table: For the table shown above, we just added the primary key again and it is showing integer in ...
3
votes
1answer
83 views

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to ...
0
votes
0answers
10 views

Uninitialized constant Grack::Bundle

Trying to setup Gitlab. I've cloned the repository, but upon attempting to start the application server I get this error: uninitialized constant Grack::Bundle The problem appears to be this gem: ...
0
votes
1answer
83 views

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 ...
0
votes
1answer
96 views

Why is /usr/bin/env permission denied to rails server?

I've just set up rails on an apache server running on Ubuntu, and when I try to go to the root page it gives this error: An error occurred while starting up the preloader. It exited before signalling ...
0
votes
0answers
14 views

Javascript not working on phusion passenger apache server

I have this strange behaviour. My server works perfectly fine while i issue thin command to boot the server. thin -p 80 -e production But the click function vanishes when i do the same using apache ...
0
votes
2answers
31 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
64 views

Nginx to serve files from multiple locations - resources paths optimization

In my rails 4 app, I have assets pipeline to process my custom js/scss. I also use /vendor/assets/javascripts as a place for 3rd party libs - jquery, requirejs... Those, I don't want to process by ...
0
votes
0answers
102 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...