Hi All, I just tried to upgrade to Rails 1.1 on my Linux server and had the following issue when running the second part of the upgrade. [root@localhost ~]# rake rails:update rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in `load_rakefile'' (See full trace by running task with --trace) Not sure what this all means. Can anybody help please? Thanks in advance Jake Howlett
It looks like you''re not running this from with an actual Rails project directory, so Rake can''t find the Rakefile it needs. You need to run it for each project that you have. Hope that helps. David On 30/03/06, jakehowlett <jakehowlett@gmail.com> wrote:> Hi All, > > I just tried to upgrade to Rails 1.1 on my Linux server and had the following > issue when running the second part of the upgrade. > > > [root@localhost ~]# rake rails:update > rake aborted! > No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) > /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in `load_rakefile'' > (See full trace by running task with --trace) > > Not sure what this all means. Can anybody help please? Thanks in advance > > Jake Howlett > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 30/03/06, jakehowlett <jakehowlett@gmail.com> wrote:> Hi David, > > I tried that but I got this error instead when rake aborted: > > "Don''t know how to build task ''rails:update''" > > Any ideas? Appreciate the help.Do you still have any old versions of Rails installed? If you have, I suggest you uninstall those (gem uninstall) and try again. If that doesn''t work, I''m stumped :-) David
David Thomson <ceedwlt@...> writes:> It looks like you''re not running this from with an actual Rails > project directory, so Rake can''t find the Rakefile it needs. You need > to run it for each project that you have.I should add that this is only the case when trying to run the command in a Typo blog project directory. Works in the other projects (or, at least there are no errors). Jake
David Thomson <ceedwlt@...> writes:> Do you still have any old versions of Rails installed? If you have, I > suggest you uninstall those (gem uninstall) and try again. If that > doesn''t work, I''m stumped > > David >Only one version installed AFAIK David. As I noted in a separate reply since this one, the error is only when running the command from inside a Typo install. Other projects are fine. I''ve seen there are some issues with Typo and Rails 1.1. I''ll keep an eye out for an update and leave that directory alone for a while. Thanks for your help, Jake
first update rails via gem:> gem update rails --include-dependenciesor uninstall and reinstall via gem if you have issues:> gem uninstall rails > gem install rails --include-dependenciesThen you can back up your current projects and upgrade them with rake from their own directories. I could take a test snapshot from svn and upgrade it in its own directory tree so you could run your test suite before upgrading any production code. -Sean David Thomson wrote:> It looks like you''re not running this from with an actual Rails > project directory, so Rake can''t find the Rakefile it needs. You need > to run it for each project that you have. > > Hope that helps. > > David-- Posted via http://www.ruby-forum.com/.
Sorry, "I could take a test " should be "I would take a test " -- Posted via http://www.ruby-forum.com/.
> Only one version installed AFAIK David. > > As I noted in a separate reply since this one, the error is only when running > the command from inside a Typo install. Other projects are fine. > > I''ve seen there are some issues with Typo and Rails 1.1. I''ll keep an eye out > for an update and leave that directory alone for a while. > > Thanks for your help, > JakeAh, if it''s Typo, might be best to wait for that one :-) David
I''m sorry, why not just use gem update? David Thomson wrote:> It looks like you''re not running this from with an actual Rails > project directory, so Rake can''t find the Rakefile it needs. You need > to run it for each project that you have. >-- Yaroslav Markin yaroslav at markin dot net
Hi Jake and everyone, I''m having the same problem. I tried uninstalling (all versions of) Rails and starting over, and that didn''t solve the problem. I would be very grateful if someone could point us in the right direction on this! Chris Johnson jakehowlett wrote:> David Thomson <ceedwlt@...> writes: > >> It looks like you''re not running this from with an actual Rails >> project directory, so Rake can''t find the Rakefile it needs. You need >> to run it for each project that you have. > > > Hi David, > > I tried that but I got this error instead when rake aborted: > > "Don''t know how to build task ''rails:update''" > > Any ideas? Appreciate the help. > > Jake-- Posted via http://www.ruby-forum.com/.
After spending quite a bit of time with the same problems, I finally got this working for me. By this point, I have already upgraded to Ruby 1.8.4, and rails 1.1.0 and reinstalled RadRails 6.1 and configured RadRails to use the correct ruby, rdoc, and ri. I would recommend backing up your project first or at least committing anything recently changed to your source control before duplicating this. I made a fresh rails project and copied from the new project to my actual working project the public/javascipts/ directory and files, the /script directory, and then config/environments/ directory and config/environment.rb and routes.rb and test/test_helper.rb files. If you had updated any of these previously, now is where you go back to the backup copy and see what it will take to reimplement those changes. After all this, I was able to get webrick and my rails app launched at least. Probably a bit more copying than necessary, but I haven''t gone back and figured out exactly what needs upgraded. David Chris Johnson wrote:> Hi Jake and everyone, > > I''m having the same problem. I tried uninstalling (all versions of) > Rails and starting over, and that didn''t solve the problem. > I would be very grateful if someone could point us in the > right direction on this! > > Chris Johnson > > > jakehowlett wrote: >> David Thomson <ceedwlt@...> writes: >> >>> It looks like you''re not running this from with an actual Rails >>> project directory, so Rake can''t find the Rakefile it needs. You need >>> to run it for each project that you have. >> >> >> Hi David, >> >> I tried that but I got this error instead when rake aborted: >> >> "Don''t know how to build task ''rails:update''" >>>> Any ideas? Appreciate the help. >> >> Jake-- Posted via http://www.ruby-forum.com/.