RailsCasts Pro episodes are now free!

Learn more or hide this

gummybears's Profile

GitHub User: gummybears

Comments by

Avatar

Made a mistake with the preseed file. Should read

mysql-server-5.1 mysql-server/root_password_again password <%= lv_password %>
mysql-server-5.1 mysql-server/root_password password <%= lv_password %>
mysql-server-5.1 mysql-server/start_on_boot boolean true

Avatar

You can use a preseed file to automate the mysql installation, Ubuntu (10.10)

you can use something like (not tested)

run "#{sudo} debconf-set-selections /tmp/mysql_preseed"
run "#{sudo} apt-get -y install mysql-server"

The preseed file itself (you can run this through erb) or replace
the erb code with your mysql password:
mysql-server-5.1 mysql-server/<%= lv_password %> <%= lv_password %>
mysql-server-5.1 mysql-server/<%= lv_password %> <%= lv_password %>
mysql-server-5.1 mysql-server/start_on_boot boolean true

I switched from capistrano to sprinkle, because sprinkle can be programmed to verify the deployment and I don't have to duplicate
capistrano recipes for each Rails project.

Avatar

Tried it with Rails 3.1.1.rc3 but got
uninitialized constant Uhoh (NameError) when trying
to mount the engine from another rails application.

Then I thought perhaps I have to do build/install the plugin
as a gem. After doing this and including the gem uhoh in the
main app's Gemfile the problem went away.
Not sure if this is correct.

Avatar

I would love to signup to watch the Pro screencasts, but I only have a Paypal account.