Post-Install Ruby on Rails with Passenger on Media Temple (dv) 3.5
Posted August 11th, 2009 in UncategorizedSo Greg Goodwin has a very good post on installing Ruby on Rails with Passenger on a Media Temple dedicated virtual server. However, there were some post-install gotchas I ran into. I don’t recall running into these problems before. Perhaps I did and solved them last time, but did not write the solutions down. Well now I’m going to.
-
The mysql gem will error out if you use:
gem install mysql
You need to use:
gem install mysql -- --with-mysql-config=/usr/lib/mysql/mysql_config
-
If you use capistrano, the apache user needs write access to the folders under
shared
.chown -R FTPUSER:psaserv shared
should do the trick -
For setting up actionmailer, make sure delivery_method is set to :sendmail.
-
Some gems/plugins have external dependencies and may fail silently, for example Paperclip which depends on ImageMagick.
yum install ImageMagick
will fix that. Is there a way to check for these sort of dependencies similar to config.gem?