Welcome Guest | Login

Radiant CMS: How do I perform rake db:schema:dump

Following the Radiant tutorial on this site, how might I perform a rake db:schema:dump. I am getting this error when moving to my application folder:

rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in `load_rakefile'

2007-02-18 11:37 AM

Doesn't the tutorial say to ruby script/setup_database production ?  Why would you want to be dumping the data?

2007-02-18 12:52 PM

Being new to rails and radiant I began my application in production mode due to difficulties
trying to deploy from my development application. I have gained a better
understanding of how radiant uses instance mode yet I am unable to
perform a rake db:schema:dump in order to move the production db to a
development db. I have tried performing a rake both in my_app and
radiant/radiant folders, each failed to produce a rake of my db.

2007-02-18 01:08 PM

Also, and I hate to point out the obvious, but do you have a Rakefile?  Check out the one in Radiant's source..http://dev.radiantcms.org/svn/radiant/trunk/radiant/

2007-02-18 01:14 PM

Also pointing out the obvious is warmly welcomed as I am still pretty new to rails and have been working with it sporadicly during personal time. Yet I did get an error when trying to copy the rake file from radiant/radiant to the root of my_app,  when running a rake I get this error:

(in /home/forwardf/forwardfoot)
/home/forwardf/forwardfoot/config/boot.rb:63:Warning: require_gem is obsolete.  Use gem instead.
rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)

It appears that the instance of my application only has minimal ruby files, leaving work to the radiant framework.

2007-02-18 01:23 PM

Hi there - looks like you just need to update your database.yml correctly to make the info that you created in cPanel's mysql options.  You can also try locking Radiant to Rails 1.1.6 in your environment.rb and seeing if these warnings go away (else you'll need to manually change require_gem to just gem )  

2007-02-18 05:26 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.