# Rails + SVN generation script

**URL:** <https://www.ruby-forum.com/t/rails-svn-generation-script/56430>\
**Category:** Ruby\
**Created:** [March 31, 2006, 5:36am UTC](https://www.ruby-forum.com/t/rails-svn-generation-script/56430 "2006-03-31T05:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 31, 2006, 5:36am UTC](https://www.ruby-forum.com/t/rails-svn-generation-script/56430/1 "2006-03-31T05:36:11Z")

</div>

Anyone got a script to share that:

1. Creates a trunk directory
2. Creates a trunk/vendor directory
3. Adds the above to svn
4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or  
1.1)
5. Runs trunk/vendor/rails/…/bin/rails to generate a rails directory  
skeleton
6. Modifies the svn:ignore for the logs and config/database.yml
7. Moves config/database.yml to config/database.yml.sample
8. Adds a script/reload\_everything.sh.sample script to scripts/ that  
8a. Drops the dev and test database  
8b. Reloads the dev and test database  
8c. Performs migration on the dev and test database  
8d. Runs rake load\_fixtures (to populate the dev database)  
8e. Runs rake to run the tests
9. Ignores script/reload\_everything.sh

I think that’s it. Just wondering if anyone’s done something like  
that before I make my own. That’s generally the process I follow when  
creating a new Rails project.

Joe

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [March 31, 2006, 5:42am UTC](https://www.ruby-forum.com/t/rails-svn-generation-script/56430/2 "2006-03-31T05:42:17Z")

</div>

crap, wrong group, sorry!
