Its all about Ruby On Rails
Bash script for creating new rails project and initial SVN import (with ignoring/removing log/other files)
Many times we need to create a new rails project and import it to SVN repository. Each time we have to repeat same commands for creating new rails project, Initial import to SVN, Ignoring *.log files, move database.yml to database.example, ignoring tmp/sessions etc.. etc..
So I have written a bash script that do all this stuff, all you need to do is copy this Bash script (for creating new rails project and initial SVN import with ignoring/removing log/other files) to any of your directory with name “create_rails_with_subversion” and execute this script by issuing ./create_rails_with_subversion & follow screen instructions.
This will:
- create a new rails project
- initial import to SVN
- remove and ignore all log files from svn
- remove and ignore sessions, cache sockets files from tmp dir
- move database.yml to database.example
- ignore database.yml
I also love to have your feedbacks…
UPDATE: I have modified this script, now it doesn’t remove tmp dir, it just ignore content in tmp/sessions, tmp/sockets and tmp/caches
UPDATE2: Script again modified , now it also freeze rails (you have to specify version).
| Print article | This entry was posted by Akhil Bansal on January 10, 2007 at 7:13 pm, and is filed under ROR, Rails, Rubyonrails, SVN, Subversion, bash, scm. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
- Rails on the road » Archivio Blog » Un fantastico script per creare un’applicazione Rails
- Web On Rails – » Ruby script for creating new rails project and initial SVN import (with ignoring/removing log/other files)
- genehack.org » Blog Archive » Tab dump // 20070212
- Bash скрипт для создания rails приложений at Undr
about 3 years ago
Thanks Akhil,
I tried and worked great.
about 3 years ago
It’s fantastic! You make me save a lot of time! Thanks
about 3 years ago
cool script. thanks for posting…btw, the word ‘terminating’ is misspelled. also, it might be nice to have a message at the end that indicates the script finished successfully.
about 3 years ago
Wow! Great!
One thing I’d add is add an svn:ignore for *.db, *.sqlite and *.sqlite3 in db/, so the sqlite databases are ignored
Thanks for the script!
about 3 years ago
Thank You
about 2 years ago
This is great, much time is saved.
Thanks