rake db:bootstrap takes a number of environment variable options. Take
for example, this line from the script for demo.radiantcms.org:
rake production db:bootstrap ADMIN_NAME=Administrator
ADMIN_USERNAME=admin ADMIN_PASSWORD=radiant
DATABASE_TEMPLATE=/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.9/db/templates/styled-blog.yml
OVERWRITE=true
Sean
Mohit Sindhwani wrote:
Adam van den Hoven wrote:
I was talking about editing radiant directly and bending to my will
but writing a script to handle it is probably smarter.
Sigh I do hate it when lofty ideas are shot down. :)
Now if I could only bypass the interactive portions of the bootstrap.
My usual way to do that last part is to create a file that has the
hard coded responses and then redirect input from the command line.
my_executable.cmd < response.txt
Would that help?
Cheers,
Mohit.
1/31/2009 | 6:50 PM.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant