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
1answer
710 views

Nginx, Passenger, Rails serving static files but not running app

I've seen other similar questions but none with satisfactory answers, so here goes. I've installed Ruby, Rails, Nginx and Passenger and tried to configure it to all work together. Here is the ...
0
votes
1answer
100 views

PhusionPassenger::UnknownError when visiting canvas

So I'm creating a canvas LMS server however I'm running into errors left and right. I recently got a forbidden error (which I was able to solve thanks to this great community). Now, server errors ...
0
votes
1answer
151 views

apache mod_rewrite not working with mod proxy

I have a Rails 2.3.18 application running on http://0.0.0.0:3004/, it is running with Passenger module, and is deploying on Apache server with proxy module using the following configuration: ...
2
votes
0answers
163 views

How do I increase the logging level for Puma?

Currently I am only getting ActiveRecord and view-rendering output in my Rails application log file, since I switched to Puma from WEBrick. I haven't been able to find where I can modify the output ...
0
votes
1answer
673 views

Does Nginx require an index file for the root directory?

I'm developing a Rails application, and I'm now making the production environment default. I created the directive server { listen 127.0.0.1:80; server_name example.com; root ...
2
votes
4answers
1k 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 ...
0
votes
2answers
842 views

Can't run webrick on port 80

I try to figure out how to point a.b.c.d:3000 to my domain name. Here, a.b.c.d is my IP address. As per this post: How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port I get the ...
6
votes
2answers
231 views

Are there any features in Linux that are essential for hosting Ruby on Rails?

I'm on a project where we're going to be hosting a Ruby on Rails app on a Linux server we own. Are all flavors of Linux equally capable of hosting Rails apps? If not, what features are present in some ...
0
votes
1answer
207 views

Phusion Passenger slow rendering JSON response [closed]

I have a Rails 4 application that returns a large amount of data that is rendered as JSON (23K records/2.8MB document). Testing this call on my laptop using the WEBrick server, the request completes ...
0
votes
1answer
136 views

Adding a transaction ID to ruby-on-rails logs

We have a RoR app (rails version 3.2.15 right now). As it has been getting busier, the log-files it's producing are becoming less and less useful for troubleshooting. When they come in like this, it's ...
1
vote
3answers
554 views

How to start Rails from a shell script on Debian?

I don't really have any need to mess with passenger or capistrano at the moment. I simply want to run rails on boot on port 3000. I've attempted to replicate this tutorial for node as much as I could ...
0
votes
1answer
212 views

Rails application keeps timing out when attempting to connect to Postgresql DB

I'm hosting a postgresql database on a small windows azure Ubuntu 13.04 VM with a default postgresql.conf. I have a Rails application running on a medium windows azure Ubuntu 13.04 VM. When accessing ...
2
votes
1answer
142 views

What happens when Phusion PassengerMaxPoolSize is reached?

The subject of my post pretty much sums up my question: What happens when PassengerMaxPoolSize is reached? For Example: PassengerMaxPoolSize is configured to 40 based off our system specs What ...
0
votes
1answer
122 views

Apache sites file without domain name [closed]

I can't seem to find this on google. I'm trying to put up a quick test site using EC2 and Elastic IP but I'm getting stuck at how to edit the Apache sites file so that I can view the site. It's ...
2
votes
1answer
991 views

gitlab authentication using HTTP_REMOTE_USER environment variable

we have discovered gitlab, and I would like to integrate it in our global authentication process, which relies on apache HTTP_REMOTE_USER environment variable. I have seen very little documentation ...
1
vote
2answers
384 views

How to setup nginx server with wildcard DNS

This is about an sample Rails app that uses subdomains. You can access it here: http://rodrigora.com.br. In this app, you can create site and specify one subdomain for it. Example: site: ...
0
votes
1answer
55 views

Restart individual application in apache+passenger on ubuntu server

I have multiple ruby on rails applications on the server(Apache + passenger ) using RailsbaseURI. When new applications are deployed, apache is configured to reload which reads the new configuration ...
0
votes
0answers
30 views

Apache virtual hosts file - would like to have a rails test directory

I recently got Phusion passenger installed on my VPS, and I am just starting out on my Ruby / rails projects, so I would prefer to put the rails projects in a directory named ...
4
votes
1answer
216 views

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 ...
0
votes
0answers
47 views

How can I run a small app along side a Discourse install, using the same method Discourse uses to run?

I followed a slightly outdated version of the Discourse Install on Ubuntu Guide to get my forum up and running at something like forum.mysite.com. Now, I have a very small, related rails app that I'd ...
0
votes
0answers
1k views

nginx passenger_root not accepting valid passenger gem location

I am trying to add passenger_root and passenger_ruby to my nginx.conf file, but when i try and restart NGINX I get the message: Starting nginx: nginx: [alert] Unable to start the Phusion Passenger ...
1
vote
1answer
433 views

Nginx proxying websockets, connections not closed

I'm confused about where the problem is located, but basically I have nginx proxying websocket connections to a backend ruby thin server, which services the connections with the websocket-rails module ...
0
votes
1answer
147 views

nginx: simplify config for force ssl on specific path for rails app

im using the config below. it works, but the problem for me is the repeating of some lines. the proxy_* directives need to be in location /admin also, because only one location will be executed by ...
0
votes
1answer
361 views

Capistrano authentication to server fails but ssh for deploy user works

I've been working with capistrano for about a year deploying an app and everything went fine, until a couple of days ago when I got this ** [server_name :: out] fatal: Authentication failed after ...
0
votes
1answer
47 views

Cant configure Apache with Passenger + Rails

I am only beginner and try to understand how to configure apach web-server for my RubyOnRails app. I have linux, installed apache2, passenger and apache2-module for passenger. While installing i got ...
0
votes
1answer
261 views

Proxy port 80 to 443 with Netcat/nc

I have a Windows server running a Rails application via the Thin ruby gem web server through Cygwin 32 bit. The server only listens on port 443 and uses HTTPS because it is using LDAP authentication ...
0
votes
1answer
484 views

Passenger permission denied accessing .htaccess

I just finished migrating my Redmine install and after testing it with webrick all went fine and the site worked really well with http://localhost:3000 Next, i installed and configured mod_passenger, ...
1
vote
1answer
916 views

bundle install throwing syntax error when setting up Rails

I'm trying to deploy a rails app to Passenger. When running bundle: [ps93785]$ /usr/lib/ruby/gems/1.8/bin//bundle install I get this: Gemfile syntax error: ...
0
votes
1answer
161 views

When should Passenger, Unicorn, and Rack be used? [closed]

Reading about Puppet often Passenger, Unicorn, and Rack are mentioned, but I can't figure out what the purpose of these are. The website for Passenger says: Phusion Passenger is a web server and ...
-1
votes
1answer
129 views

Due to Haproxy I didn't get the client ip address

I am using Haproxy for load balancing. My website run on ruby on rails. I have done some googling and come to know to add this line option forwardfor header X-Client in /etc/haproxy.cfg file. In ...
0
votes
0answers
64 views

www in domain name is not working

I am new for hosting. I have taken Amazon EC2 free tire for hosting and host a Rails website on an ec2 instance. I have taken a domain name for my site named http://jarsoftwares.com/ . I have ...
0
votes
1answer
179 views

How to configure rewrite rule for nginx over already binded port

My application is found here: http://my.app.com:3000/ My assets are found here: http://my.app.com:3000/dev-assets My application references assets here: http://my.app.com:3000/assets I'm using a ...
0
votes
1answer
70 views

How to do Caching only for specific IP's, in Nginx or Rails

We have a Rails 2.3.8 app running on a nginx/passenger server. Recently the crawlers generate a huge load on us. We'd like to turn on page caching ONLY for crawlers (specific IP addresses), i.e., ...
1
vote
2answers
2k views

Activesupport gem complains that it needs ruby 1.9.3 while it is already installed

I have problem installing paperclip gem in Ubuntu 12.04.2 LTS. Activesupport complains that it needs ruby 1.9.3 but I have it already installed. root@Ubuntu-1204-precise-32-minimal ...
-1
votes
1answer
71 views

SSL apache2 settings no pointing to rails4 app

My apache config /etc/apache2/apache2.conf is: <VirtualHost *:443> ServerName www.bollymovi.es DocumentRoot /home/fizzy/bollyflix/production/current/public SSLEngine on SSLCertificateFile ...
-3
votes
1answer
47 views

Is there any big changes if I use different VPS with better RAM? [duplicate]

Currently, my Rails app is working on a server with 1GB RAM. I feel it's so slow so that I'm planning to shift to better Server. There are 3 choices such as 2GB, 4GB, and 6GB. or 2GB with SSD. Is ...
-1
votes
2answers
338 views

passenger is listing all the public folder files

Hello everyone please ignore my noobness, this is very first time i am deploying RailsApp; I have used apache and phussion passenger with rvm, here is my virtual host configurations that i added in ...
0
votes
2answers
589 views

Ubuntu, mysql server connection

Hello everybody please ignore my noobness, My problem start from connecting to mysql on ubuntu 12.04 ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...
1
vote
0answers
95 views

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{ ...
1
vote
0answers
61 views

Investigating concurrency problems on Heroku

I'm having trouble with a Rails application on Heroku. The number of requests per minute it can handle has suddenly dropped SHARPLY. I'm looking for a list of things to investigate for how to fix ...
0
votes
1answer
46 views

Web service for checking out / leasing a token

I run a web site on AWS that has a number of web servers (say 4 of them) running behind a load balancer. For this particular web site, I have one license key of New Relic for doing instrumentation. ...
0
votes
1answer
91 views

phusion passenger processes dying and new ones starting up mysteriously

as you can see, passenger processes are dying and new ones booting up, even though we're not explicitly restarting passenger ourselves. we can't pinpoint what's causing this. what are some common ...
0
votes
1answer
118 views

How can you do dynamic, key-based SSH similar to GitHub?

I wan't to provide SSH/RSYNC like features to users of my app. I'd like them to just be able to paste/save an SSH key into my app similar to how GitHub does: So, my question is, once I let users ...
0
votes
0answers
30 views

connection to apache server switches sockets connection

I have just post a question but I post an other one because the problem is not the one I had in thought when asking the latter. So, I am running some rails app on osx, when I run rails s, everything ...
1
vote
2answers
430 views

Trying to install wordpress inside rails app with nginx and fastcgi

I have a rails app (let's call it myapp) running at www.myapp.com. I want to add a wordpress blog at www.myapp.com/blog. The webserver for the rails app is thin (see the upstream block). The wordpress ...
0
votes
1answer
95 views

Where to look for PostgreSQL sock file on Centos 6.4?

I installed postgresql9.1 into my Centos 6.4. I can do psql template (as root) to open the database console but cannot use Rails rake db:create to create the database: FATAL: Ident authentication ...
0
votes
1answer
1k views

Passenger 4 preloader hangs

I set as usual a VM with a standard configuration of Apache + Passenger hosting a Rails 3.2 app. The app is working with Sphinxsearch 2.0.4 via the thinking sphinx gem. After the deploy, at first ...
-1
votes
2answers
28 views

Do I need cPanel for a Rails application?

I'm migrating a Rails application to a dedicated server. Can it be set up without a cPanel installation? It seems like I could use just Apache and Passenger. Cheers!
0
votes
0answers
228 views

How to fix rubygems.rb:1070:in `require': closed stream (IOError)?

I deployed a Rails app to a Red Hat server. It worked fine for over a week and then the server was automatically restarted during the weekend and now the app won't work. I was getting this error: ...
0
votes
1answer
639 views

Production redis server has 100% cpu usage

My production redis server has gone mad and has been hogging up 100% of CPU usage. I have done everything that I can from upgrading redis server to restarting the machine. I can't figure out what's ...