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
2answers
105 views

Ruby Application Webroot Location

I have inherited a ruby application at work and I am fairly new to ruby hosting environments. The application is hosted on a linux server but I am unable to find where the webroot is. I have looked ...
0
votes
1answer
400 views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
1
vote
0answers
421 views

Installing a Ruby On Rails Application (fedena) on an ISPCONFIG 3 site

I have a debian squeeze box running ispconfig 3. I am trying to install an application made in ruby on rails Project Fedena Install. According to that installation, it looks like it will only work if ...
1
vote
1answer
90 views

Allow a group to run all files under a certain directory in CentOS

I am trying to set up automatic deployment for my Rails app using Capistrano. Capistrano will need to run sudo kill, and I achieved that without it asking me for a password, by editing the ...
3
votes
1answer
528 views

Nginx + Unicorn

I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck. When I attempt to view my test server, I get nothing but a 404 page. I am sure ...
-1
votes
2answers
116 views

Restart one specific application only

I am using an apache webserver which has several applications on it. I need to restart one specific ruby on rails application. In the phusion passenger documentation, it mentions that there are 2 ...
0
votes
1answer
1k views

Nginx + Unicorn subdomain virtual hosting failure (timeouts)

I have a server set on a VPS serving up a production Rails app via Nginx + Unicorn. Presently this works fine with the following conf files: nginx.conf unicorn.conf However the added subdomain of ...
4
votes
1answer
1k views

Can't connect to Ruby on Rails Development Server on Centos 6.3

I've having trouble connecting to my Ruby on Rails development server: When I type in 192.168.0.10:3000 into a web browser on a different the connection just times out. I suspect the problem is with ...
0
votes
1answer
308 views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in ...
1
vote
1answer
210 views

For 1 domain, how can I use both WordPress and Rails?

I have Rails installed for example.com, however, I want to use WordPress for my blog as well. So I want example.com/blog to be WordPress. The problem is, I want to have WordPress in a separate ...
1
vote
1answer
417 views

Deleting a remote directory using capistrano

I am using Capistrano to deploy a Ruby on Rails application to a server. Everything is running up until the point when bundle install is called in which case I get the error "Some gems seem to be ...
1
vote
1answer
97 views

Maxed out directories in public folder for rails. What can I do?

We have a rails app that dynamically generates thumbnails on request and saves the result locally to make it faster to serve up the same one again. We use the following url structure: ...
1
vote
0answers
844 views

How to load environment variables with Unicorn

I can't seem to get my server to load up the environment variables. In my ideal setup I would like 1 user (deployer) to serve multiple applications on a single server. Ubuntu 12.04, Nginx, Unicorn. ...
3
votes
1answer
1k views

Rails Passenger Nginx cannot load such file — bundler

I have set up Rails, Passenger, nginx, and PostgreSQL on Ubuntu Server 12.04LTS. Upon trying to access the application/website, however, I am greeted with an error page saying that the application ...
0
votes
2answers
818 views

Rails application only showing Nginx default page

I am having problems with my Rails application that will use Nginx and Passenger. I've already deployed the application and have setup the nginx config file as such: server { listen 80; ...
-1
votes
1answer
306 views

Is AMD Opteron 3280, 8 cores, 32 GB DDR3 RAM will able to run 200 rails application and 200 mysql database [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am planning to hosing an rails application + Mysql in dedicated server maximum 200 replicated rails application with 200 ...
1
vote
1answer
792 views

How do i set a cronjob to use less CPU

I'm managing a server witch host several ruby on rails websites. I need a cron job for every website that does : send emails (notifications) create thumbnails Unfortunatly, every time the cron is ...
0
votes
1answer
110 views

Passenger not running continuously

I am wondering if somebody could inform me of the correct behaviour for a Rails app running through Rack/Passenger, as I am seeing some unusual behaviour on a production system which has never been ...
0
votes
2answers
195 views

Skipping a “Press certain key to continue” in a bash script

I'm installing RVM for Ruby with the following command: curl -L https://get.rvm.io | sudo su myuser -c "bash -s stable --rails" I specifically need it to be installed under that user - and it will ...
0
votes
3answers
618 views

Can I generate CSR for remoted server and what server I should use(thin,mongrel)?

I am moving my app into production and need help in generating CSR. I created a private key and followed these steps: Created private key Entered passphrase for it (openssl genrsa -des3 -out ...
1
vote
0answers
209 views

request a image but nginx return 200 and a blank response header

When browser(Windows IE8,9 and Windows Chrome(20) and Mac Chrome(20)) request a set of images, some image requests return 304 and display correctly, but others return 200OK and a blank response ...
0
votes
1answer
109 views

PostgreSQL 9.1 won't restore because “a user is connected”

I'm transferring a database as part of transferring a website. I've not used PostgreSQL before, so assume that I don't know much about it (I primarily use MySQL). We cannot directly connect the ...
1
vote
1answer
74 views

Rails mailer fails to deliver [closed]

When I'm using password recovery in Rails, I get this in the development log: Sent mail to me@gmail.com (1024ms) Date: Sat, 21 Jul 2012 15:24:35 +0700 From: me@gmail.com Reply-To: me@gmail.com To: ...
0
votes
1answer
548 views

Nginx 413 error does not get to the browser

I think my situation is very similar to Why might a 413 not be flushed to the client immediately? , what is indented is where my situation is different I have my local development server returning ...
1
vote
1answer
134 views

How to model the infrastructure for the Rails application with processor/memory intensive tasks (using EC2)? [closed]

I need to model a Rails application that does video processing using Amazon AWS resources (EC2). Application allows users to convert videos. Videos are uploaded by users. Right now it is running on ...
0
votes
1answer
114 views

securing a ruby on rails installation

I successfully used this tutorial: http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/ for ...
0
votes
0answers
64 views

ruby on rails process stuck at 0% cpu (Yes, 0%) on a leased VM

I have a leased openVZ linux vm over at chicagovps.net. I am trying to deploy a ruby on rails application on the same. The problem is: when I run the rails server process, I see that during server ...
1
vote
1answer
188 views

Unicorn: Sub-Url Generated Links Broken

I am currently trying to stand up an instance of redmine, however currently The generated links in my redmine instance are all broken. I am attempting to serve redmine from a sub-url i.e ...
-1
votes
1answer
134 views

How to find your EC2 username and password

I recently took over a rails project from another developer that uses capistrano to deploy to EC2. When I try to deploy it is asking for a password. I can't figure out where to change the user and ...
0
votes
1answer
291 views

State of the art deploying Rails applications with git

I'm looking to group together the information on the current best practices for deploying a Rails application on a server I run (rather than, say, Heroku). The application is developed by multiple ...
2
votes
3answers
1k views

Multiple Rails apps on same subdomain?

I recently decided to try out Rails. When working with PHP, I simply had all of my PHP projects in the same directory. For example, I may have http://ubuntu/app1, http://ubuntu/app2, etc. I created a ...
3
votes
1answer
392 views

ruby: invalid opcode

There's a fairly complex application than runs on two VMs (on Xen). Both VMs run CentOS 6.2 with the exact same packages and configuration for every application running (minus networking which is ...
3
votes
0answers
107 views

Rails with phusion passenger and wordpress

We had a site developed using on ruby on rails. It had Website Web services for mobile app Admin panel to manage data. We started using wordpress to manage site content. We have finished ...
2
votes
2answers
697 views

Static file serving only works if root is a subfolder under public

I am trying to serve static cache files using nginx. There are index.html files under the rails_root/public/cache directory. I tried the following configuration first, which doesn't work: root <%= ...
1
vote
3answers
241 views

What are the benefits of running a app server in user space, like Unicorn, as opposed to as sudo?

I've been using Phusion Passenger + Rails/Sinatra for a lot of projects. Passenger runs under the main Nginx or Apache process. But I'm interested in Unicorn, partly because it runs in user space. ...
2
votes
1answer
392 views

Apache serving empty gzip with assets produced by Rails Asset Pipeline

I followed the steps described in the blogpost The Asset Pipeline, from development to production and tweaked them to my environment. The two important files are: ...
3
votes
1answer
542 views

Bundle install on build in TeamCity

I'm trying to run a build in TeamCity. The application that i'm trying to build for unit tests is coded in Ruby on Rails. I configured the VCS root to get from my repository, after cloning the build ...
0
votes
1answer
381 views

Rails /tmp/cache/assets permissions issue using Debian virtual machine hosted on OS X Lion

I am running Parallels Desktop 7 on OS X Lion. I have a VM with Debian installed, and inside that VM I setup a Rails development environment. I am using Parallels Tools to share out my OS X home ...
1
vote
0answers
167 views

Tuning Ruby + Rails + Nginx + Passenger [closed]

I have an app that is responding pretty slowly. Most of the response time is Ruby, (800 ms per request!) however the load on the server is pretty low. It's a VPS with 4 cores and 4 gigs of ram, and ...
0
votes
1answer
1k views

SSL on nginx + unicorn got “Error 102 (net::ERR_CONNECTION_REFUSED)”

I tried to deploy my app on EC2 (opened port: 22, 80, 443) App: Rails 3.2.2 Server: nginx 1.2.1 unicorn gem (latest) ubuntu 12.04 Deployer: Capistrano I tried to follow the instruction in ...
0
votes
1answer
251 views

Why is there a separate “unicorn_rails” for Rails apps?

According to the Unicorn docs, there are different binaries for Rails apps and other Rack apps: non-Rails Rack applications In APP_ROOT, run: unicorn for Rails applications (should work for ...
0
votes
1answer
486 views

Rails app deployment challenge, not finding database table in production.log

I'm trying to setup PasswordPusher as my first ruby app ever. Building and running the webrick server as instructed in README works fine. It was only when I tried to add Apache ProxyPass and ...
0
votes
1answer
169 views

Stealing the thin ruby web server port to the world

I'm using a thin web server for my production ruby-on-rails app. I have a lighttpd frot-end for a 3 servers cluster. Everything is ok, but all three servers are accessible from the outside world. ...
1
vote
1answer
785 views

Installing gitlab on Debian 6.0.5

I am using following directions in an attempt to install gitlab on Debian 6.0.5 https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md I am getting an error when i'm running following ...
0
votes
3answers
2k views

Passenger error: No such file or directory - config/environment.rb

I installed Redmine on MacOSX Server 10.6.8 according to this installation description. So far everything works fine: When I start webrick the server serves the Redmine pages. The gems and redmine are ...
1
vote
2answers
404 views

How to prepare for a huge spike in traffic for launching a website hosted on Heroku?

I am getting ready to launch a site I've been working on, and am talking to some bloggers. It's planned to go live next week and press will write about it when it does. But the thing is, this is my ...
0
votes
0answers
256 views

Posting to a rails app causing unexplained 500 error

I'm making an ajaxed POST from jQuery, it works in development but not in production. The request doesn't show up in the rails log or the mongrel log. Nginx is returning 500, but it's not clear why ...
0
votes
1answer
115 views

NGINX on OSX Snow Leopard Server - extremely slow over network

I set up nginx to serve a rails application for our intranet. It runs on a osx server blade with snow leopard. When I work on the server and go to localhost:8444 it runs very smooth and fast, but when ...
1
vote
1answer
746 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 ...
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 { ...