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

What should my Nginx rewrite rules be for Rails with Passenger for page caching in a subdirectory?

I'm using Nginx 0.7.64, Passenger 2.2.9, Rails 2.3.5. I have my page caching directory set to /public/cache, and I'd like to be able to serve cached pages when requested over HTTP, but always hit the Rails app when requested over HTTPS. The bulk of…
Ian Terrell
  • 171
  • 1
  • 8
6
votes
2 answers

Why is bundler failing to find rake while deploying with Capistrano?

I have a Rails project which was running on Ubuntu 18.04, and I've just upgraded the system to Ubuntu 20.04. cap production deploy is failing at the step deploy:assets:precompile with: 00:07 deploy:assets:precompile 01…
afarley
  • 213
  • 2
  • 9
5
votes
2 answers

how to disable email confirmation in gitlab in private network

Recently I installed the gitlab for my LAN. When my users are trying to create their accounts they are getting email confirmation message. Now my question is I want to disable whole email confirmation feature and everything. For that what file i…
ashok
  • 229
  • 2
  • 4
  • 10
5
votes
1 answer

How do I set up mod_auth_cas for a VirtualHost?

I have the following in /etc/apache2/httpd.conf: Include /private/etc/apache2/passenger_pane_vhosts/*.conf I have the following in /etc/apache2/passenger_pane_vhosts/my_site.conf: LoadModule auth_cas_module…
James A. Rosen
  • 511
  • 3
  • 9
  • 19
5
votes
1 answer

NGINX Unicorn 504 Gateway Time-out

I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: upstream app { server unix:/tmp/unicorn.rails.sock fail_timeout=0; } server { listen 80; root /home/rails/public; …
Orkhan
  • 59
  • 3
5
votes
1 answer

Unicorn workers timing out intermittently

I'm getting intermittent timeouts from unicorn workers for seemingly no reason, and I'd like some help to debug the actual problem. It's worse because it works about 10 - 20 requests then 1 will timeout, then another 10 - 20 requests and the same…
Bill Billingson
  • 153
  • 1
  • 5
5
votes
1 answer

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to allow them to do that. The idea is that when you…
user125756
  • 183
  • 6
5
votes
4 answers

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to keep my secret files out of the git repository.…
5
votes
4 answers

Operation not permitted when starting Unicorn

I've created an nginx/unicorn/capistrato setup on Ubuntu (Amazon EC2) by following mostly this guide. I guess everything is set up like it should but when I start Unicorn I get (a LOT of) this error in the log: E, [2012-09-08T08:57:20.658092 #12356]…
fiskeben
  • 171
  • 1
  • 7
5
votes
2 answers

Varnish configuration to only cache for non-logged in users

I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged out but only to cache static assets when they…
davidsmalley
  • 457
  • 1
  • 6
  • 14
5
votes
1 answer

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 my firewall configuration, but I've tried to open…
sandyscott
  • 213
  • 3
  • 7
5
votes
2 answers

maintenance/installation of ruby gems/ruby on rails on Linux in general and Gentoo

I am currently looking into Ruby/Ruby on Rails as an alternative to Python/Django. My main problem is that it is rather unclear what the best practices are when it comes to installing Ruby gems and/or Ruby on Rails projects on a Linux with a general…
khaos
  • 213
  • 2
  • 8
5
votes
3 answers

Using Upstart to manage Unicorn w/ rbenv + bundler binstubs w/ ruby-local-exec shebang

Alright, this is melting my brain. It might have something to do with the fact that I don't understand Upstart as well as I should. Sorry in advance for the long question. I'm trying to use Upstart to manage a Rails app's Unicorn master process.…
codykrieger
  • 187
  • 1
  • 7
5
votes
1 answer

Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream

I have an Nginx and Passenger setup that is proving problematic. At relatively low loads the server seems to get backed up and start churning results like this into the error.log: connect() to unix:/passenger_helper_server failed (11: Resource…
Toby Hede
  • 309
  • 5
  • 11
5
votes
2 answers

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my configuration. Below is my configuration: user…
tiny
  • 51
  • 1
  • 5
1 2
3
60 61