'Programming' Archive

Passenger + Sinatra Tip: DocumentRoot is Always /public

I was getting 403 errors after deploying my newest Sinatra app with Passenger.

Turns out Passenger assumes and requires a /public folder.

This app is so tiny and new, it didn’t have one yet – so I was pointing Passenger at the app’s root. Resulting in the 403 errors.

Solution: Create an empty /public folder and restart Apache. Ta Da. Like magic.

If you’re still having issues – confirm your LoadModule passenger_module path is correct, mine looks like this:
opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.7/ext/apache2/mod_passenger.so

After updating the Passenger gem to 2.2.7, my LoadModule path was way off, not helping the deployment troubleshooting efforts.

Sphinx Config Problem on OS X Leopard 10.5.8

How To Cache Highly Dynamic Data in Rails with Memcache – Part 3

Kernestly

After a couple very rough weeks – I’m happy with where Cullect and it’s caching

How To Cache Highly Dynamic Data in Rails with Memcache – Part 2

I started building up new project today, one of the 2 initial revenue generating

all this work on command line Ruby apps has got me happily avoiding /views

My Rails-based Wiki Engine now in GitHub

9 Things Cullect Taught Me About Software

How To Cache Highly Dynamic Data in Rails with Memcache – Part 1

How To: Build a Wiki with Ruby on Rails – Part 2

How To: Build a Wiki with Ruby on Rails – Part 1

Snippet: Copy MySQL Databases Over SSH

Ruby on Rails Snippet for Changing Relative Paths to Absolute

Parsing Arbitrary XML Namespaces in Ruby with Hpricot

Optimization Tips: Ruby on Rails and MySQL

Restarting Rails with ‘Address Already in Use’

Rails Cheap, MySQL Expensive

Tail-ing Remote Rails Production.log Locally