The app is very simple, it has a single 'notes' controller where you
can add/edit/delete text notes, which are stored in the database.
The app is deployed using on Amazon EC2, Ubuntu, Apache, Passenger,
Rails and SQLite.
The poolparty config files are stored in config/poolparty/. A copy of
the opscode cookbooks is included in config/cookbooks/
You can get the example from http://github.com/emiltin/poolparty_example
It's work in progress... Any feedback on how to make this example more
useful or better structered is welcome.
I'm currently I'm stuck with a problem, rake db:migrate fails on the
instance:
root@domU-12-31-38-00-40-57:/var/www/my_app/releases/20090501091008#
RAILS_ENV=production rake db:migrate --trace
(in /var/www/my_app/releases/20090501091008)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake aborted!
undefined method `reenable' for <Rake::Task db:schema:dump =>
[environment]>:Rake::Task
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/tasks/databases.rake:253
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/tasks/databases.rake:117
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in `run'
/usr/bin/rake:31
a bit of googling made me think it was a problem with on outdated
version of rake. gem list tells me i have rake 0.8.4, but rake --
version says it's 0.8.1. appearently rake is installed both as an apt-
get package, and as a gem.
i tried to remove the package, and symlinking instead
> apt-get remove rake
> ln -s /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake /usr/bin/rake
but it didn't help. i guess that change would be unmade anyways, as
soon as a do a cloud-configure?
any ideas about why i get the undefined method `reenable' for
<Rake::Task db:schema:dump => [environment]>:Rake::Task??
thanks,
emil tin