Setup Development Environment on the Edge
With the following documentation, we assume that the environment is set up and working as described on the SetupDevelopment page. There are also a page on the subject.
Switch
Update your application to the Edge:
b:maurycy:~/Projects/breakout> rake freeze_edge (in /home/maurycy/Projects/breakout) ...
If trying to run the tests you get this:
b:maurycy:~/Projects/breakout> rake test_functional (in /home/maurycy/Projects/breakout) rake aborted! undefined method `namespace' for main:Object .//vendor/rails/railties/lib/tasks/framework.rake:1 .//vendor/rails/railties/lib/tasks/rails.rb:4 .//vendor/rails/railties/lib/tasks/rails.rb:4:in `each' .//vendor/rails/railties/lib/tasks/rails.rb:4 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' ./Rakefile:10 /usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in `load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 /usr/bin/rake:18 Exit 1
Update the Rake:
b:maurycy:~/Projects/breakout> sudo gem update rake Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org Attempting remote upgrade of rake Attempting remote installation of 'rake' Successfully installed rake-0.7.0 Installing RDoc documentation for rake-0.7.0... Gems: [rake] updated
If sometimes you get this exception:
Mysql::Error in <controller not set>#<action not set> .//vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1112:in `write': Lost connection to MySQL server during query
Update your MySQL driver to the binary one.
Problems
Tests fail:
b:maurycy:~/Projects/breakout> rake test_functional (in /home/maurycy/Projects/breakout) rake aborted! Mysql::Error: #42000BLOB/TEXT column 'content' used in key specification without a key length: CREATE INDEX name ON searchables (name, content) (See full trace by running task with --trace) Exit 1