Tagged Questions

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)

2
votes
4answers
923 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
642 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
191 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
162 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
114 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 ...
0
votes
0answers
10 views

File Checking Rewriting and Handing off to Rails

I have a requirement for Nginx to serve a file if it exists or hand off to a Rails controller. The URI is data?x=X&y=Y&z=Z which at the moment goes direct to a Rails controller, sends the file ...
1
vote
3answers
495 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
177 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
119 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
114 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
880 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
347 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
46 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
29 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
214 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
43 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
390 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
131 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
306 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
46 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
247 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
431 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
827 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
154 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
109 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
162 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
63 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
70 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
295 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
489 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
87 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
59 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
80 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
110 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
404 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
93 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
214 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
553 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 ...
0
votes
1answer
33 views

RVM autolibs for rubies in production environments

In production, once I was used to add some utility packages (like curl, ssl etc.) to the RVM distribution before installing rubies, just to be sure that no missing libs requirements warning or errors ...
-1
votes
2answers
106 views

How do I set a domain name with a port in hosts file? [closed]

I have Apache and Rails running on my laptop. Apache is running on port 80 and rails 3000. in my hosts file I have entries like 127.0.0.1 dev.somesite.com This works well for Apache How do I add ...
2
votes
2answers
73 views

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 ...
-5
votes
2answers
43 views

Rebooting whole server for Rails [closed]

I'm migrating a Rails project onto an Apache server. I've followed the steps similarly to this link (installed passenger as ruby gem, added some lines to /etc/apache2/apache2.conf, set Vitual Host to ...