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
238
votes
7 answers

How to force or redirect to SSL in nginx?

I have a signup page on a subdomain like: https://signup.example.com It should only be accessible via HTTPS but I'm worried people might somehow stumble upon it via HTTP and get a 404. My html/server block in nginx looks like this: html { server…
Callmeed
  • 2,725
  • 4
  • 20
  • 15
30
votes
4 answers

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. Also related: Fighting Spam - What can I do as an: Email Administrator, Domain Owner, or User? What are SPF records, and how do I configure them? I'm…
jonepatr
  • 405
  • 1
  • 4
  • 7
25
votes
6 answers

What dir should I deploy Rails apps into?

What would be a reasonable and logical directory into which to deploy my production Rails apps on a Linux system? Some candidates... /var/rails <= There's a /var/www so this would be consistent with that pattern. But I.T. guys have…
Agvorth
  • 2,459
  • 4
  • 29
  • 29
21
votes
2 answers

Restore a versioned S3 bucket to a particular point in time

Let's say I've got S3 versioning enabled for my bucket: http://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html Then, let's say someone (for example, junior employee) messes up the S3 bucket (deletes some files accidentally, etc.) How can I…
elsurudo
  • 313
  • 1
  • 2
  • 6
16
votes
2 answers

Optimal number of per CPU unicorn processes

We are running a Ruby on Rails web app under Unicorn. Our app is not strictly CPU bound (we have a dual Xeon E5645 system w/12 cores and a peak load average value is around 6). We started with 40 Unicorn workers initially but application memory…
Alex
  • 7,939
  • 6
  • 38
  • 52
12
votes
1 answer

Different ways to restart Apache?

I've got an Apache question here. For my entire career as a developer, I've been restarting Apache like this: sudo /etc/init.d/apache2 restart I just today deployed my first Rails application, but I was having trouble getting Apache to restart on…
Chris Allen Lane
  • 333
  • 3
  • 12
11
votes
5 answers

Amazon EC2 Ami recommendations for free tier?

Amazon web services recently introduced a free tier, where you basically get free stuff to try out AWS and run tiny sites and projects. Basically it's free as long as you remain below a certain limit of bandwidth, disk storage etc. Since going over…
Console
  • 447
  • 1
  • 6
  • 11
11
votes
3 answers

MySQL replication across geographically separate servers

My organisation has been looking into how to spread our servers around geographically while keeping backups very up to date, and ideally spreading the load. The initial thing I have in mind is Rails on MySQL. The write rate isn't too high…
Hamish Downer
  • 9,420
  • 6
  • 38
  • 51
10
votes
5 answers

How can I set up Redmine => Active Directory authentication?

First, I'm not an AD admin on site, but my manager has asked me to try to get my personal Redmine installation to integrate with ActiveDirectory in order to test-drive it for a larger-scale rollout. Our AD server is at host:port ims.example.com:389…
Chris R
  • 533
  • 1
  • 5
  • 20
9
votes
2 answers

API Management Solutions

I'm currently building an API and am looking for a tool to allow me to monitor (in a GUI) and rate-limit usage. I've come across a few enterprise solutions including: http://apigee.com/…
Mike
  • 103
  • 6
9
votes
1 answer

What causes a 400 Bad Request error for null ("") and why would our nginx logs have so many?

Daily logs from Logwatch regularly report 400 Bad Request, null: 1744 Time(s) from our nginx logs. The log entries look like: 123.123.123.123 - - [25/Jan/2011:14:44:19 -0500] "-" 400 173 "-" "-" Can anyone explain how these are generated and why…
johnml
  • 203
  • 2
  • 4
8
votes
1 answer

Can't access ports assigned to Rails 4.2, but 4.04 works fine

I have Ruby 2.1.2 installed and Rails 4.2. Bundle install runs without error. I can do a Rails C without error. Rails s -p3004 launches with webrick or thin without error When I browse to mytestsite:3004 safari, firefox, and chrome all…
UnConundrum
  • 83
  • 1
  • 3
8
votes
2 answers

What are the pros and cons of using Nginx over Apache with Rails when using Passenger

Passenger recently got support for Nginx, what are the pros and cons of it over Apache as a web server for Rails applications?
Theo
  • 2,725
  • 2
  • 19
  • 10
7
votes
2 answers

How do I get yarn installed on elastic beanstalk?

Currently you can't install yarn using yum so there doesn't seem to be an easy way to create a config that installs it before asset pre-compilation.
7
votes
1 answer

How do I increase the logging level for Puma?

Currently I am only getting ActiveRecord and view-rendering output in my Rails application log file, since I switched to Puma from WEBrick. I haven't been able to find where I can modify the output level of Puma's logging. Thoughts?
Ernie
  • 191
  • 1
  • 2
  • 4
1
2 3
60 61