A Nginx Maintenance Configuration That Works


nginx maintenanceWe use the lightening fast Nginx web server to handle our mightyvites.com requests. Like most sites we need to go offline once in awhile to deploy new code, address server issues, etc. When we take the main site down we start a single-page website that gives the obligatory “down for maintenance” message. Recently I updated the configuration file for this maintenance site so that it worked properly. By properly I mean all incoming requests get the maintenance page and are returned a HTTP 503 “Service Unavailable.”

Read the rest of this entry »

Incoming search terms:

  • nginx maintenance page
  • nginx maintenance
  • nginx down for maintenance
  • nginx maintenance message
  • mightyvites examples
  • nginx message when down
  • site down for maintenance page
  • nginx maintenance page 503
  • nginx mainterance page
  • nginx message for old browser

Upgrade To Rails 3.0.10 And Ruby 1.9.2 Reviewed


ruby on rails 3 upgradeOver a year ago (!) I announced my intention to upgrade mightyvites.com from Ruby 1.8.7 and Rails 2.2.2 to Ruby 1.9.2 and Rails 3. Took me long enough but I’m now finally following up on the issue.

No, it didn’t take me a year to do the upgrade. Shortly after I wrote that post I took a full time Rails job. Then my business got busy with paying customers. Then I got engaged and a few months later married. There were a lot of distractions which kept throwing me off my Ruby On Rails upgrade plans. I did do it though. In fact I completed two Rails upgrades this summer. One for mightyvites.com and one for my employer. In both cases I transitioned webapps from Rails 2.x to Rails 3.0.10 and introduced Ruby 1.9.2. Doing so was definitely worth it. Rails 3 feels so much more mature than previous releases. The upgrade, however, was not easy. Below are the issues I had to deal with to make it happen.
Read the rest of this entry »

Incoming search terms:

  • upgrade to rails 3 0 10
  • blog rails 3 0 10
  • rails rescue_action_in_public
  • rails rescue_action_in_public rails 3 1
  • rescue_action_in_public
  • ruby 1 8 to ruby 1 9 mysql encoding
  • ruby 1 9 review
  • ruby1 9 rails3 encoding
  • update to rails 3 0 10
  • upgrade from rails 3 0 to 3 0 10

Ruby On Rails Transactional Email Using MailChimp And SendGrid


mailchimp sendgridSince launch mightyvites.com has sent email through Gmail using very basic HTML/ERB templates. There have been no graphics, little styling, and zero email client testing. In other words our emails have sucked and looked very unprofessional. Why? Because those are the last things you worry about when you’re trying to push out the door a product that you’re not sure anyone will buy. Once your site has users, however, these are the bells and whistles you need to put time into.

Recently the time came for me to spruce up the emails mightyvites.com sends. I wanted slick-looking HTML that looks good in all email clients, makes it to users’ inboxes, is multipart, and can be tracked. In addition the email templates should be easy for non-geeks to edit. That way they can be changed often and not always by me.
Read the rest of this entry »

Incoming search terms:

  • sendgrid email template with mail api
  • tracking emails sent through rails application using mailchimp
  • sendgrid email templates
  • mailchimp transactional emails
  • mailchimp wedding invitation
  • mailchimp rails tutorial
  • ruby on rails mail chimp
  • ruby on rails email invitations
  • rails envio de email via mailchimp
  • transactional email mailchimp

Ubuntu Upstart Gotcha When Monitoring MySQL With God


Ubuntu Upstart Gotcha When Monitoring MySQL With GodI recently upgraded our two Slicehost VPSs from Ubuntu Hardy Heron (8.04) to Lucid Lynx (10.04). That’s from one LTS to another, and the process, overall, went very smoothly. To pull it off I followed the 8.04 to 10.04 instructions on the Slicehost Wiki. There were, however, two gotchas that I came across during the upgrade process.
Read the rest of this entry »

Incoming search terms:

  • god upstart
  • upstart pid file
  • ubuntu mysql pid
  • upstart pid
  • upstart god
  • ubuntu mysql pid file
  • upstart pidfile
  • god upstart script
  • ubuntu mysqld pid
  • mysql pid ubuntu

The Mighty Nice March To Ruby On Rails 3 And Ruby 1.9.2


Ruby On Rails 3

I’ve been working with Ruby On Rails 2.2.2 and Ruby 1.8.7 for a little over a year now. The Mightyvites site is built on that foundation, as is the Mighty Nice site, and a few of our client sites. However, with the release of Rails 3, and it’s compatibility with Ruby 1.9.2, I’m itching to upgrade both. There are a few reasons why I want to upgrade the cores of our RoR sites: Read the rest of this entry »

Incoming search terms:

  • rails 3 slower than rails 2
  • Mighty Rails
  • rails 3 ruby 1 9 performance
  • rails3 ruby 1 9 performance
  • rails3 slower
  • rails3 slower than rails2
  • ruby 1 9 2 performance
  • invitation plugin in ruby on rails 3
  • ruby on rails 3
  • upgrade rails 3 to 1 9 2