Mac Configuration

Page last modified 02:38, 12 Aug 2009 by mndoci | Page History

Dev Stack

  • Ruby (see Ruby and Rails for more)
  • Ruby on Rails (see Ruby and Rails for more)
  • Phusion Passenger
  • Apache2
  • MySQL (5.1.30)
  • Git
  • Capistrano

Ruby/Rails/MySQL setup

Following the instructions at Dan Benjamin's blog

Used this to roll both ruby 1.8.x and ruby 1.9.x (didn't install any pre-reqs)

# starting and stoping MySQL  
sudo
/usr/local/mysql/support-files/mysql.server start sudo /usr/local/mysql/support-files/mysql.server stop

Key Gems installed

  • Mongrel
  • Capistrano
  • Phusion-Passenger

Passenger Setup

Primarily used the screencast by Ryan Bates.  Also as per this blog post I put my virtual home info into /etc/apache2/users/mndoci.conf. 

Another blog post I used to set up passenger

 

The following was put into /etc/apache2/users/mndoci.conf (this is the old version.  Have a new version of passenger now)

 

LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.5/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.5
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

 The Passenger PrefPane is great.  Key is to point to project roots and not to the 'Public' directory in a Rails app.

 

Works like a charm.  I don't use the default "Sites" folder, but rather point to my own dev directory.

For Rails apps, don't forget to point to the Public folder in the Rails directory tree

Tag page
Page statistics
2866 view(s), 10 edit(s), and 3746 character(s)

Comments

You must login to post a comment.

Attach file

Attachments