rake db:migrate RAILS_ENV=production failed!

Ok. I tried "rake db:migrate RAILS_ENV=production" and "rake
db:migrate" after using "cap deploy" and both came up with the same
thing:

zelopast@angel:~/rainspore.com/current$ rake db:migrate

(in /home/zelopast/rainspore.com/releases/20090423074909)
rake aborted!
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\342' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\200' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\230' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\342' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\200' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\231' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\342' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\200' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\230' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\342' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\200' in expression
/home/zelopast/rainspore.com/releases/20090423074909/config/
environment.rb:3: Invalid char `\231' in expression

So I'm thinking there is something wrong in line 3 of my
environment.rb (which I've done nothing to). This is what it looks
like:

My memory is that those char codes typically relate to smart quotes
and mdashes, that sort of thing.

Any chance that this line is using smart quotes?

This is the file that was made when I created the application. Should
that line be written differently? I would only think that the default
file would be correct..

Are you sure you did not edit the file? It is as if you have the curly quote characters instead of normal single quotes. Though why the error shows two pairs is beyond me. Is line 3 the version line, it is not clear from your mail.