ruby on rails

wagn action mailer settings

The following goes into wagn.rb file (not environment.rb)

ActionMailer::Base.delivery_method = :smtp
 
ActionMailer::Base.smtp_settings = {
:address => "localhost",
:port => "25",
:domain => "mydomain.org",
}

Install imagemagick and rmagick on debian lenny

Download imagemagick ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

http://ubuntuforums.org/showthread.php?t=204908 suggests:

sudo apt-get install libperl-dev

tar xvfz ImageMagick.tar.gz
 
cd ImageMagick
 
./configure
 
sudo make
 
sudo make install

Then...

sudo wget <a href="http://rubyforge.org/frs/download.php/64971/RMagick-2.12.1.tar.gz</p>
<p>tar" title="http://rubyforge.org/frs/download.php/64971/RMagick-2.12.1.tar.gz</p>
<p>tar">http://rubyforge.org/frs/download.php/64971/RMagick-2.12.1.tar.gz</p>
<p>tar</p></a> xfvz RMagick-2.12.1.tar.gz
 
cd RMagick-2.12.1
 
sudo ruby setup.rb
 
sudo ruby setup.rb install

setup mongrel clusters and apache proxy serving via virtual host debian lenny

Assuming you have already installed Rails/Ruby

sudo gem install mongrel

sudo gem install mongrel_cluster

Then run

mongrel_rails cluster::configure -e production -p 3000 -N 2 -c /home/yourdir/yourapp -a 127.0.0.1

"production" assumes you have configured your app for production. Otherwise run "development"

You may need to open ports in iptables.

Output should be:

Writing configuration file to config/mongrel_cluster.yml.

To start mongrel cluster, cd to the rails app, then:

 

Install Ruby Gems on Ubuntu Intrepid 8.10

Do this:

$ wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
 
$ tar rubygems-1.3.1.tgz
 
$ cd rubygems-1.3.1
 
$ sudo ruby setup.rb  #you can do ruby setup.rb --help to see options
 
$ sudo  sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
 
$ sudo gem -v
1.3.1

Done!

Building a capistrano recipe into a rails2 application, to deploy Drupal clone sites (or other cloned web applications)

I needed to build a way to deploy Drupal sites to support a limited hosting application for http://socialmediaclassroom.com project.

I decided to build an application using http://www.capify.org/ (Capistrano). I thought about developing this in http://drupal.org/project/drush. However, time constraints dictated otherwise.

I ended up working on this with partner Paul B. Hartzog. Here is what we did:

Syndicate content (C01 _th3me_)