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
0
votes
3 answers

Recommended way to Investigating server performance issues

I have a linux server box that runs the following stack: apache 2.2.9 passenger 2.2.8 rails 2.3.8 MySQL 5.1 Recently we've encountered some machine performance issues, where the entire server became extremely slow (for web requests, db queries,…
sa125
  • 325
  • 1
  • 7
  • 14
0
votes
1 answer

Host Ruby on Rails Tracks on Apache2

I'm having problems getting Tracks to be hosted via Apache2 on Ubuntu 10.04. I've followed several tutorials, but none work. I've got the Tracks git repo in /var/lib/tracks and a symbolic link to /var/lib/tracks/public in /var/www.I've installed…
E-rich
  • 137
  • 1
  • 1
  • 8
0
votes
1 answer

How to deploy Rails 3 on FreeBSD 8?

I'm pretty nooby to FreeBSD and I only have worked before with ROR on Mac OS and Heroku. Now I've got VPS with installed FreeBSD 8 and found it problematic to install ror 3 with mongrel properly. Google gives me only really outdated guides, so I was…
0
votes
1 answer

Clean and backup log files

What is the best way to make sure a ruby on rails log file doesn't get too large and how would you back them up on Amazon S3? I know ec2onrails has this build in to the AMI but I'm not sure how to implement it on another machine. Thx
jspooner
  • 131
  • 3
0
votes
5 answers

Configure Apache with Ruby on Rails

I'm trying to install Tracks roughly following this guide while trying to configure Apache, but I get the following error when trying to restart Apache: /etc/init.d/apache2: 1: RailsBaseURI: not found My current virtual host configuration…
E-rich
  • 137
  • 1
  • 1
  • 8
0
votes
1 answer

Is python/django less problamatic to manage compared to rails?

Is managing a python/django server generally easier/trouble free when compared to a ruby/rails app?
Blankman
  • 2,891
  • 10
  • 39
  • 68
0
votes
1 answer

Can't send outgoing email through OpenVPN in my Rails app

I have a company intranet site programmed in Rails on an EC2 instance running OpenVPN. I'm using the basic email configuration for Rails similar to as described in the Rails guide: config.action_mailer.delivery_method =…
blastula
  • 1
  • 1
0
votes
3 answers

Capistrano + Nginx + Passenger = 403

I asked this over at stackoverflow as well, but still haven't received any answers that have helped me to solve this problem. I have spent almost a week at this point trying to solve the issue, and I'm just not making any headway. It seems that this…
0
votes
1 answer

Nginx + Passenger running a RoR app is returning 401 when 302 is expected

I've got a RoR app running on Passenger on top of Nginx. I'm using devise for my authentication method and have a link that gets sent in an email to users that requires authentication to view. If a user clicks the link from Outlook, and IE is the…
DBruns
  • 103
  • 4
0
votes
1 answer

Weird cyrillic characters behavior after uploading to Ubuntu production server

When i upload my rails app via SFTP to production server which is running Ubuntu 10.04 LTS all cyrillic characters in my files look like this: http://dl.dropbox.com/u/347209/chars.png As you can see, only parts of words are broken. And because of…
maxt3r
  • 101
  • 5
0
votes
2 answers

Why can't I access wp-admin with this Nginx + Ruby On Rails + WordPress setup?

Here's my single Linux VPS setup: A Rails app run by a Thin application server behind Nginx. A WordPress blog run by lighttpd's spawn-fcgi behind the same Nginx server. Here's what I want: Both apps running under the same domain. All URIs…
Chris
  • 123
  • 1
  • 8
0
votes
2 answers

Phusion passenger fails with: uninitialized constant Object::Rails

I am deploying my app with capistrano/passenger/nginx. The deployment goes well. However, the app dies when I try to load it: Error message: uninitialized constant Object::Rails The last line of the backtrace…
Mike
  • 121
  • 3
0
votes
2 answers

Installing gem MySQL failed

I'm installing mysql gem on Amazon AMI 2010.11.1 and I'm having the next problem: # gem install mysql Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native…
0
votes
1 answer

In my /etc/init.d/nginx script, can I set environmental variables?

I want to set GEM_HOME and GET_PATH when nginx starts, is the /etc/init.d/nginx script an ideal place for this, specifically the function start() ? Do I just add: export GEM_HOME=/path/to/home/... export GEM_PATH=/path/to/gempath/.... Does this seem…
Blankman
  • 2,891
  • 10
  • 39
  • 68
0
votes
1 answer

How to set SetEnv in nginx like it is done in Apache?

I am running ubuntu, rvm, passenger, with a rails 3 application. I have to set the GEM_HOME and GEM_PATH using SetEnv in my host file as its done in Apache, but I am not sure how this is done in nginx. Can this be done somehow?
Blankman
  • 2,891
  • 10
  • 39
  • 68