Hi Chungwen, You can use YAML.load_file and a rake task. You run rake tasks like this:
heroku rake mytask:name If the data is something you always need to set up your application and you are using Rails, you should put the load in db/seeds.rb and then call "heroku rake db:seed" instead of making something custom. Best, Rob On Sat, Aug 27, 2011 at 08:54, chungwen wu <[email protected]> wrote: > Hi guys, > > i have a Heroku newbie question. How do i inject some data that was saved > into YAML files by YAML.dump via rake tasks into the database on a Heroku > instance? Will a rake task using YAML.load_file work? Or it has to be done > using Tap gem? > > Many thanks, > Chungwen > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
