The blog of freelance Designer & Developer, David Rice.
I posted this article some time ago but thought i’d give a little update as some things have changed since Ruby on Rails version 1.1
-
Okay first of all lets assume we’ve created a new project
rails example -
Now
cd svnexampleand we’ll import the app into our repositorysvn import . http://domain.com/svn/example/trunk -
mv example example_old -
svn co http://domain.com/svn/example exampleWe now have a working copy of our application -
The following step will be the same for all of your rails 1.1 > ? applications, so it’s a good idea to extract it into a handy little shellscript you can run time and time again
svn remove log/* svn commit -m 'removing all log files from subversion' svn propset svn:ignore "*.log" log/ svn update log/ svn commit -m 'Ignoring all files in /log/ ending in .log' svn remove tmp/* svn commit -m 'removing all cache sockets and sessions from tmp directory' svn propset svn:ignore "*" tmp/ svn update tmp/ svn commit -m "Ignoring all files created in tmp directory" # if you're doing a collaborative application you'll want to ignore # database.yml too so do these steps svn move config/database.yml config/database.example svn commit -m 'Moving database.yml to database.example' svn propset svn:ignore "database.yml" config/ svn update config/ svn commit -m 'Ignoring database.yml'that will clear out all of the cruft we don’t want to have to transfer every time we do a commit, especially if your using lighttpd locally as subversion really hates the fcgi-socket-0 files.
And that’s about it, if you want to streamline things a bit more make an alias for your shellscript and run it every time you first checkout your new rails app. If you want more information there’s a lot of stuff over at the ruby on rails wiki
- email me@davidjrice.co.uk
- phone me on +44 7590 538 303
If you need help with the Design, Build, Management, Hosting or Support of your project do get in touch, I'd love to hear from you!
Recently
- 22 Apr » HTML5 Validator.nu ruby gem
- 28 Sep » ActiveMerchant Support for Realex
- 09 Sep » Getting Real with Realex
- 04 Sep » Back in Black
- 25 Nov » Rails Session Storage Cookie Vs Active Record
- 06 Jun » Get Exceptional
- 21 Apr » git and github ftw
- 19 Apr » Co-Working Belfast, Put Your Money Where Your Mouth Is
- 28 Mar » Co-working Belfast Plan
- 26 Feb » Do Not Buy an Apple AirPort Extreme Base Station, They Crash and Burn
- 13 Feb » Ssh, Presentation in Progress