• RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

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).

10 Responses so far.

  1. Shanti says:

    Thanks Akhil,
    I tried and worked great.

  2. Matte says:

    It’s fantastic! You make me save a lot of time! Thanks

  3. [...] In questo post su Web On Rails potete scaricare uno script per creare un’applicazione Rails che uno volta lanciato farà: [...]

  4. Bob says:

    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.

  5. Wow! Great! :D
    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!

  6. [...] Some days go I wrote a bash script for creating new rails project and initial SVN import (with ignoring/removing log/other files). And I received many comments if I can make a ruby script for this stuff. Hence here is the ruby script for creating new rails project and initial SVN import (with ignoring/removing log/other files) (0). [...]

  7. [...] Bash script for creating new rails project and initial SVN import (with ignoring/removing log/other files) [...]

  8. Nicholas Orr says:

    This is great, much time is saved.
    Thanks :)


Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...

#/status/256699237230845952

Action and Page caching has been ex...

With the commit c82cf81f00f Action and Page caching has been extracted ...

turbo-sprockets-rails3: Speeds up ...

#/status/253420357841723393

EdgeRails: ActiveRecord::SessionSto...

With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into ...

Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...

#/status/256699237230845952

Action and Page caching has been ex...

With the commit c82cf81f00f Action and Page caching has been extracted ...

turbo-sprockets-rails3: Speeds up ...

#/status/253420357841723393

EdgeRails: ActiveRecord::SessionSto...

With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into ...