CentOS 5 Configuration Tweak for sudo

Posted by Scott on Feb 17th, 2008

I recently updated my Rails deployment server from CentOS 4 to CentOS 5, and immediately ran into the following error when deploying my apps using vlad:

sudo: sorry, you must have a tty to run sudo

Thus apache wasn’t being restarted after my mongrel instances. It turns out that RHEL/CentOS 5 includes added restrictions in its default sudo configuration. Simply comment out the following line in /etc/sudoers:

#Defaults requiretty

to resolve the problem.

NHRuby.org May Meeting: HowTo Deploy Rails Applications

Posted by Scott on May 14th, 2007

Tomorrow night at the Portsmouth Public Library I’ll be giving a presentation on how to deploy a ruby on rails application.

I’ll be discussing setup of a deployment environment based on Apache 2.2, mod_proxy_balancer, Mongrel, and MySQL. Then I’ll be giving an introduction to Capistrano, a wonderful ruby tool for automating the deployment of your rails application from source code repository to production server(s). Plus, there will be free book giveaways!

For more details and directions, check out the NHRuby wiki.

Blog Badges



[FSF Associate Member]

Archives