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
4
votes
2 answers

Need to link WP Blog with Rails App on Heroku

I have a client who wants to migrate his Rails app to Heroku. However the client also has a blog associated with his domain that runs on WordPress. Currently, the WordPress blog is running happily alongside the Rails app, but once we migrate to…
John Glass
  • 143
  • 1
  • 6
4
votes
3 answers

Transparantly make multiple web applications available at a single address

I have multiple web applications running on their own http server, e.g. a ruby/rails application on port 8080 and a python/cherrypy application on 8081. Is it possible to make these transparently available via single port address? Perhaps by adding…
ckuijjer
  • 143
  • 4
4
votes
2 answers

Nginx configuration leads to endless redirect loop

So I've looked at every sample configuration I could find and yet every time I try and view a page that requires ssl, I end up in an redirect loop. I'm running nginx/0.8.53 and passenger 3.0.2. Here's the ssl config server { listen 443 default…
brianthecoder
  • 141
  • 1
  • 2
4
votes
5 answers

-rwxr-xr-x@ meaning

I have a file with an @ after the permissions -rwxr-xr-x@ 1 riccardotacconi staff 215 14 Sep 14:21 Capfile Do you know its meaning. I am deploying a Rails application using Capistrano. That Gemfile is not copies, although it is committed in…
rtacconi
  • 745
  • 4
  • 14
  • 28
4
votes
3 answers

How to execute a command on the server with Capistrano?

I have a very simple task called update_feeds: desc "Update feeds" task :update_feeds do run "cd #{release_path}" run "script/console production" run "FeedEntry.update_all" end Whenever I try to run this task, I get the following…
yuval
  • 157
  • 1
  • 2
  • 5
4
votes
5 answers

Running Ruby on Rails App on Apache + Passenger == to much memory

I'm running redmine (a RoR app) on my server using passenger / Apache 2.2. Passenger and ruby are using way too much memory. Is there a more memory effective way to run redmine/ruby? I only need to support a half dozen redmine users. I want to…
Rich
  • 945
  • 1
  • 6
  • 15
4
votes
3 answers

Is it possible to use custom script for authentication with PAM?

I want to enable users to use my rails application's credentials for login to sftp account. If I understand correctly I should somehow use PAM for this. But I didn't find any info on how to do this?
retro
  • 143
  • 1
  • 5
4
votes
3 answers

Ignoring GET parameters in Varnish VCL

Okay: I've got a site set up which has some APIs we expose to developers, which are in the format /api/item.xml?type_ids=34,35,37®ion_ids=1000002,1000003&key=SOMERANDOMALPHANUM In this URI, type_ids is always set, region_ids and key are…
JamesHarrison
  • 51
  • 2
  • 3
4
votes
3 answers

First steps in scaling servers up for a Ruby on Rails application

I'm running a RoR web application on a dual core AMD Athlon 4450e server w/ 8GB RAM and Ubuntu. It's doing alright, getting spikes up to 320 dynamic requests per minute, it's also handling all the assets, including serving up some larger video…
Tim Harding
  • 195
  • 6
4
votes
2 answers

Which VPS configuration would be better?

I currently have a VPS at HostingRails.com, and am rather disappointed with the service so I have been considering switching to linode instead. I have three rails applications (my live application, the QA version of the live application, and one…
Daniel Vandersluis
  • 491
  • 1
  • 6
  • 17
4
votes
2 answers

What specifically does FastCGI do (for Ruby, Java, and Python)?

If I have a server running Apache, and I install FastCGI, would that let me run Ruby and Python scripts? If Python is already installed on the server, wouldn't I just be able to add .py to the CGI section in the httpd.conf file to have Python…
SJaguar13
  • 937
  • 1
  • 6
  • 13
3
votes
1 answer

many instances of apache get spawned with Passenger/Rails

I have a Debian Linux VPS server for my production website (512MB). I'm using Phusion Passenger with Apache to service my Rails 2.3.4 application with Ruby 1.9. I'm limiting the pool of Phusion passenger instances to 3 Although the traffic is…
Tam
  • 133
  • 3
3
votes
0 answers

Puma + Nginx permission denied on files that don't exist

Getting an error in the nginx logs: [error] 6193#6193: *1 open() "/home/ubuntu/app/assets/bootstrap.min-2e2a039f4eb020ba4438b6e2ad6a83748c14257a60f68facd2d72df75c452969.css" failed (13: Permission denied), client: 127.0.0.1, server: 127.0.0.1,…
user58446
  • 141
  • 2
  • 5
3
votes
2 answers

running wordpress blog as directory location within nginx server configured for rails

I've been running a site on puma / rails setup under nginx. Now we have to setup wordpress under path /blog, i.e. www.mysite.com is the rails app, and www.mysite.com/blog is the wordpress blog. the location setup done for Wordpress blog is as…
Anadi Misra
  • 527
  • 2
  • 9
  • 23
3
votes
0 answers

Multiple ruby on rails web apps running on one directory in Apache without modifying/adding all the time

What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically so I do not have to add a new in…